private void OnPreviewKeyDown()

in JetBrains.Etw.HostService.Updater/src/Views/WhatsNewWindow.xaml.cs [40:62]


    private void OnPreviewKeyDown(object sender, KeyEventArgs e)
    {
      // Tab      : Cycle forward to the next tab 
      // Space    : Scroll page down 
      // PageUp   : Scroll page up 
      // PageDown : Scroll page down 
      // Home     : Scroll to top of page 
      // End      : Scroll to bottom of page 
      // Up       : Scroll up 
      // Down     : Scroll down
      if (Keyboard.Modifiers == ModifierKeys.None && e.Key is Key.Tab or Key.Up or Key.Down or Key.PageUp or Key.PageDown or Key.Home or Key.End or Key.Space) return;

      // Ctrl+C     : Copy
      // Ctrl+A     : Select all
      // Ctrl+Enter : Open link
      if (Keyboard.Modifiers == ModifierKeys.Control && e.Key is Key.C or Key.A or Key.Enter) return;

      // Shift+Space : Scroll page up 
      // Shift+Tab   : Cycle forward to the previous tab 
      if (Keyboard.Modifiers == ModifierKeys.Shift && e.Key is Key.Space or Key.Tab) return;

      e.Handled = true;
    }