@@ -302,10 +302,10 @@ private async void ProHomeInstance_KeyUp(object sender, KeyRoutedEventArgs e)
302302 App . CurrentInstance . InteractionOperations . SelectAllItems ( ) ;
303303 break ;
304304 case ( true , false , false , true , VirtualKey . N ) :
305- LaunchNewWindow ( ) ;
305+ App . CurrentInstance . InteractionOperations . LaunchNewWindow ( ) ;
306306 break ;
307307 case ( true , false , false , true , VirtualKey . W ) :
308- CloseTab ( ) ;
308+ App . CurrentInstance . InteractionOperations . CloseTab ( ) ;
309309 break ;
310310 case ( false , false , false , true , VirtualKey . Delete ) :
311311 App . CurrentInstance . InteractionOperations . DeleteItem_Click ( null , null ) ;
@@ -353,25 +353,6 @@ private async void ProHomeInstance_KeyUp(object sender, KeyRoutedEventArgs e)
353353 }
354354 }
355355 }
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-
375356 }
376357
377358 public enum InteractionOperationType
0 commit comments