Skip to content

Build your personal knowledge base with Trilium Notes

Add Ctrl+PgUp/Dn for tab switching, pointer to Electron docs

Raia402c792870e
diff --git a/src/public/app/widgets/dialogs/options/shortcuts.js b/src/public/app/widgets/dialogs/options/shortcuts.js
index 34abd5c29f..224431850a 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 = `
<div class="options-section">
<h4>Keyboard shortcuts</h4>
- <p>Multiple shortcuts for the same action can be separated by comma.</p>
+ <p>
+ Multiple shortcuts for the same action can be separated by comma.
+ See <a href="https://www.electronjs.org/docs/latest/api/accelerator">Electron documentation</a> for available modifiers and key codes.
+ </p>
<div class="form-group">
<input type="text" class="form-control" id="keyboard-shortcut-filter" placeholder="Type text to filter shortcuts...">
diff --git a/src/services/keyboard_actions.js b/src/services/keyboard_actions.js
index 9e223d46bc..d665692a93 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"
},