@@ -302,10 +302,10 @@ private async void ProHomeInstance_KeyUp(object sender, KeyRoutedEventArgs e)
302
302
App . CurrentInstance . InteractionOperations . SelectAllItems ( ) ;
303
303
break ;
304
304
case ( true , false , false , true , VirtualKey . N ) :
305
- LaunchNewWindow ( ) ;
305
+ App . CurrentInstance . InteractionOperations . LaunchNewWindow ( ) ;
306
306
break ;
307
307
case ( true , false , false , true , VirtualKey . W ) :
308
- CloseTab ( ) ;
308
+ App . CurrentInstance . InteractionOperations . CloseTab ( ) ;
309
309
break ;
310
310
case ( false , false , false , true , VirtualKey . Delete ) :
311
311
App . CurrentInstance . InteractionOperations . DeleteItem_Click ( null , null ) ;
@@ -353,25 +353,6 @@ private async void ProHomeInstance_KeyUp(object sender, KeyRoutedEventArgs e)
353
353
}
354
354
}
355
355
}
356
-
357
- private void CloseTab ( )
358
- {
359
- if ( ( ( Window . Current . Content as Frame ) . Content as InstanceTabsView ) . TabStrip . TabItems . Count == 1 )
360
- {
361
- Application . Current . Exit ( ) ;
362
- }
363
- else if ( ( ( Window . Current . Content as Frame ) . Content as InstanceTabsView ) . TabStrip . TabItems . Count > 1 )
364
- {
365
- ( ( Window . Current . Content as Frame ) . Content as InstanceTabsView ) . TabStrip . TabItems . RemoveAt ( ( ( Window . Current . Content as Frame ) . Content as InstanceTabsView ) . TabStrip . SelectedIndex ) ;
366
- }
367
- }
368
-
369
- private async void LaunchNewWindow ( )
370
- {
371
- var filesUWPUri = new Uri ( "files-uwp:" ) ;
372
- await Launcher . LaunchUriAsync ( filesUWPUri ) ;
373
- }
374
-
375
356
}
376
357
377
358
public enum InteractionOperationType
0 commit comments