private void FileList_PreviewKeyDown(object sender, KeyRoutedEventArgs e) { if (e.Key == VirtualKey.Enter && !e.KeyStatus.IsMenuKeyDown) { if (!isRenamingItem) { App.CurrentInstance.InteractionOperations.OpenItem_Click(null, null); e.Handled = true; } } else if (e.Key == VirtualKey.Enter && e.KeyStatus.IsMenuKeyDown) { AssociatedInteractions.ShowPropertiesButton_Click(null, null); } else if (e.Key == VirtualKey.Space) { if (!isRenamingItem && !App.CurrentInstance.NavigationToolbar.IsEditModeEnabled) { if ((App.CurrentInstance.ContentPage).IsQuickLookEnabled) { App.CurrentInstance.InteractionOperations.ToggleQuickLook(); } e.Handled = true; } } }
private void FileList_PreviewKeyDown(object sender, KeyRoutedEventArgs e) { if (e.Key == VirtualKey.Enter && !e.KeyStatus.IsMenuKeyDown) { if (!isRenamingItem) { App.CurrentInstance.InteractionOperations.OpenItem_Click(null, null); e.Handled = true; } } else if (e.Key == VirtualKey.Enter && e.KeyStatus.IsMenuKeyDown) { AssociatedInteractions.ShowPropertiesButton_Click(null, null); } else if (e.Key == VirtualKey.Space) { if (!isRenamingItem && !App.CurrentInstance.NavigationToolbar.IsEditModeEnabled) { if ((App.CurrentInstance.ContentPage).IsQuickLookEnabled) { App.CurrentInstance.InteractionOperations.ToggleQuickLook(); } e.Handled = true; } } else if (e.KeyStatus.IsMenuKeyDown && (e.Key == VirtualKey.Left || e.Key == VirtualKey.Right || e.Key == VirtualKey.Up)) { // Unfocus the GridView so keyboard shortcut can be handled this.Focus(FocusState.Programmatic); } }
private void FileList_PreviewKeyDown(object sender, KeyRoutedEventArgs e) { if (e.Key == VirtualKey.Enter && !e.KeyStatus.IsMenuKeyDown) { if (!isRenamingItem) { App.CurrentInstance.InteractionOperations.List_ItemClick(null, null); e.Handled = true; } } else if (e.Key == VirtualKey.Enter && e.KeyStatus.IsMenuKeyDown) { AssociatedInteractions.ShowPropertiesButton_Click(null, null); } }
private void AllView_PreviewKeyDown(object sender, KeyRoutedEventArgs e) { if (e.Key == VirtualKey.Enter && !e.KeyStatus.IsMenuKeyDown) { if (isRenamingItem) { AllView.CommitEdit(); } else { App.CurrentInstance.InteractionOperations.OpenItem_Click(null, null); } e.Handled = true; } else if (e.Key == VirtualKey.Enter && e.KeyStatus.IsMenuKeyDown) { AssociatedInteractions.ShowPropertiesButton_Click(null, null); } }
private void AllView_PreviewKeyDown(object sender, KeyRoutedEventArgs e) { if (e.Key == VirtualKey.Enter && !e.KeyStatus.IsMenuKeyDown) { if (isRenamingItem) { AllView.CommitEdit(); } else { App.CurrentInstance.InteractionOperations.OpenItem_Click(null, null); } e.Handled = true; } else if (e.Key == VirtualKey.Enter && e.KeyStatus.IsMenuKeyDown) { AssociatedInteractions.ShowPropertiesButton_Click(null, null); } else if (e.KeyStatus.IsMenuKeyDown && (e.Key == VirtualKey.Left || e.Key == VirtualKey.Right || e.Key == VirtualKey.Up)) { // Unfocus the GridView so keyboard shortcut can be handled this.Focus(FocusState.Programmatic); } }