@@ -208,36 +208,6 @@ protected override void OnLaunched(LaunchActivatedEventArgs e)
208
208
// Ensure the current window is active
209
209
Window . Current . Activate ( ) ;
210
210
Window . Current . CoreWindow . PointerPressed += CoreWindow_PointerPressed ;
211
- Window . Current . CoreWindow . Dispatcher . AcceleratorKeyActivated += Dispatcher_AcceleratorKeyActivated ;
212
-
213
- }
214
- }
215
-
216
- private void Dispatcher_AcceleratorKeyActivated ( CoreDispatcher sender , AcceleratorKeyEventArgs args )
217
- {
218
- if ( args . KeyStatus . IsMenuKeyDown )
219
- {
220
- switch ( args . VirtualKey )
221
- {
222
- case VirtualKey . Left :
223
- NavigationActions . Back_Click ( null , null ) ;
224
- break ;
225
- case VirtualKey . Right :
226
- NavigationActions . Forward_Click ( null , null ) ;
227
- break ;
228
- case VirtualKey . F :
229
- ( App . CurrentInstance . OperationsControl as RibbonArea ) . RibbonTabView . SelectedIndex = 0 ;
230
- break ;
231
- case VirtualKey . H :
232
- ( App . CurrentInstance . OperationsControl as RibbonArea ) . RibbonTabView . SelectedIndex = 1 ;
233
- break ;
234
- case VirtualKey . S :
235
- ( App . CurrentInstance . OperationsControl as RibbonArea ) . RibbonTabView . SelectedIndex = 2 ;
236
- break ;
237
- case VirtualKey . V :
238
- ( App . CurrentInstance . OperationsControl as RibbonArea ) . RibbonTabView . SelectedIndex = 3 ;
239
- break ;
240
- }
241
211
}
242
212
}
243
213
@@ -268,7 +238,6 @@ protected override void OnActivated(IActivatedEventArgs args)
268
238
// Ensure the current window is active.
269
239
Window . Current . Activate ( ) ;
270
240
Window . Current . CoreWindow . PointerPressed += CoreWindow_PointerPressed ;
271
- Window . Current . CoreWindow . Dispatcher . AcceleratorKeyActivated += Dispatcher_AcceleratorKeyActivated ;
272
241
return ;
273
242
274
243
case ActivationKind . CommandLineLaunch :
@@ -293,15 +262,12 @@ protected override void OnActivated(IActivatedEventArgs args)
293
262
// Ensure the current window is active.
294
263
Window . Current . Activate ( ) ;
295
264
Window . Current . CoreWindow . PointerPressed += CoreWindow_PointerPressed ;
296
- Window . Current . CoreWindow . Dispatcher . AcceleratorKeyActivated += Dispatcher_AcceleratorKeyActivated ;
297
-
298
265
return ;
299
266
case ParsedCommandType . Unkwon :
300
267
rootFrame . Navigate ( typeof ( InstanceTabsView ) , null , new SuppressNavigationTransitionInfo ( ) ) ;
301
268
// Ensure the current window is active.
302
269
Window . Current . Activate ( ) ;
303
270
Window . Current . CoreWindow . PointerPressed += CoreWindow_PointerPressed ;
304
- Window . Current . CoreWindow . Dispatcher . AcceleratorKeyActivated += Dispatcher_AcceleratorKeyActivated ;
305
271
return ;
306
272
}
307
273
}
@@ -314,7 +280,6 @@ protected override void OnActivated(IActivatedEventArgs args)
314
280
// Ensure the current window is active.
315
281
Window . Current . Activate ( ) ;
316
282
Window . Current . CoreWindow . PointerPressed += CoreWindow_PointerPressed ;
317
- Window . Current . CoreWindow . Dispatcher . AcceleratorKeyActivated += Dispatcher_AcceleratorKeyActivated ;
318
283
}
319
284
320
285
private void TryEnablePrelaunch ( )
0 commit comments