@@ -125,8 +125,6 @@ protected override void OnNavigatedTo(NavigationEventArgs eventArgs)
125
125
126
126
private void Page_Loaded ( object sender , RoutedEventArgs e )
127
127
{
128
-
129
-
130
128
viewModel = new ItemViewModel ( ) ;
131
129
interactionOperation = new Interaction ( ) ;
132
130
@@ -237,16 +235,20 @@ private async void ProHomeInstance_KeyUp(object sender, KeyRoutedEventArgs e)
237
235
await App . addItemDialog . ShowAsync ( ) ;
238
236
break ;
239
237
case ( true , false , false , true , VirtualKey . C ) : //ctrl + c, copy
240
- App . CurrentInstance . InteractionOperations . CopyItem_ClickAsync ( null , null ) ;
238
+ if ( ! App . CurrentInstance . NavigationControl . IsEditModeEnabled )
239
+ App . CurrentInstance . InteractionOperations . CopyItem_ClickAsync ( null , null ) ;
241
240
break ;
242
241
case ( true , false , false , true , VirtualKey . V ) : //ctrl + v, paste
243
- App . CurrentInstance . InteractionOperations . PasteItem_ClickAsync ( null , null ) ;
242
+ if ( ! App . CurrentInstance . NavigationControl . IsEditModeEnabled )
243
+ App . CurrentInstance . InteractionOperations . PasteItem_ClickAsync ( null , null ) ;
244
244
break ;
245
245
case ( true , false , false , true , VirtualKey . X ) : //ctrl + x, cut
246
- App . CurrentInstance . InteractionOperations . CutItem_Click ( null , null ) ;
246
+ if ( ! App . CurrentInstance . NavigationControl . IsEditModeEnabled )
247
+ App . CurrentInstance . InteractionOperations . CutItem_Click ( null , null ) ;
247
248
break ;
248
249
case ( true , false , false , true , VirtualKey . A ) : //ctrl + a, select all
249
- App . CurrentInstance . InteractionOperations . SelectAllItems ( ) ;
250
+ if ( ! App . CurrentInstance . NavigationControl . IsEditModeEnabled )
251
+ App . CurrentInstance . InteractionOperations . SelectAllItems ( ) ;
250
252
break ;
251
253
case ( true , false , false , true , VirtualKey . N ) : //ctrl + n, new window
252
254
App . CurrentInstance . InteractionOperations . LaunchNewWindow ( ) ;
@@ -258,12 +260,16 @@ private async void ProHomeInstance_KeyUp(object sender, KeyRoutedEventArgs e)
258
260
App . CurrentInstance . InteractionOperations . CloseTab ( ) ;
259
261
break ;
260
262
case ( false , false , false , true , VirtualKey . Delete ) : //delete, delete item
261
- App . CurrentInstance . InteractionOperations . DeleteItem_Click ( null , null ) ;
263
+ if ( ! App . CurrentInstance . NavigationControl . IsEditModeEnabled )
264
+ App . CurrentInstance . InteractionOperations . DeleteItem_Click ( null , null ) ;
262
265
break ;
263
266
case ( false , false , false , true , VirtualKey . Space ) : //space, quick look
264
- if ( ( App . CurrentInstance . ContentPage ) . IsQuickLookEnabled )
267
+ if ( ! App . CurrentInstance . NavigationControl . IsEditModeEnabled )
265
268
{
266
- App . CurrentInstance . InteractionOperations . ToggleQuickLook ( ) ;
269
+ if ( ( App . CurrentInstance . ContentPage ) . IsQuickLookEnabled )
270
+ {
271
+ App . CurrentInstance . InteractionOperations . ToggleQuickLook ( ) ;
272
+ }
267
273
}
268
274
break ;
269
275
case ( false , false , true , true , VirtualKey . Left ) : //alt + back arrow, backward
0 commit comments