From a402c792870ed8138d7392408e1a172c7de07fff Mon Sep 17 00:00:00 2001 From: Rai Date: Sun, 27 Nov 2022 19:33:05 -0800 Subject: [PATCH] Add Ctrl+PgUp/Dn for tab switching, pointer to Electron docs --- src/public/app/widgets/dialogs/options/shortcuts.js | 5 ++++- src/services/keyboard_actions.js | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/public/app/widgets/dialogs/options/shortcuts.js b/src/public/app/widgets/dialogs/options/shortcuts.js index 34abd5c29..224431850 100644 --- a/src/public/app/widgets/dialogs/options/shortcuts.js +++ b/src/public/app/widgets/dialogs/options/shortcuts.js @@ -7,7 +7,10 @@ const TPL = `

Keyboard shortcuts

-

Multiple shortcuts for the same action can be separated by comma.

+

+ Multiple shortcuts for the same action can be separated by comma. + See Electron documentation for available modifiers and key codes. +

diff --git a/src/services/keyboard_actions.js b/src/services/keyboard_actions.js index 9e223d46b..d665692a9 100644 --- a/src/services/keyboard_actions.js +++ b/src/services/keyboard_actions.js @@ -215,13 +215,13 @@ const DEFAULT_KEYBOARD_ACTIONS = [ }, { actionName: "activateNextTab", - defaultShortcuts: isElectron ? ["CommandOrControl+Tab"] : [], + defaultShortcuts: isElectron ? ["CommandOrControl+Tab", "CommandOrControl+PageDown"] : [], description: "Activates tab on the right", scope: "window" }, { actionName: "activatePreviousTab", - defaultShortcuts: isElectron ? ["CommandOrControl+Shift+Tab"] : [], + defaultShortcuts: isElectron ? ["CommandOrControl+Shift+Tab", "CommandOrControl+PageUp"] : [], description: "Activates tab on the left", scope: "window" },