From 051a84686f333266526c1564621a1bcde199f26c Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Sun, 11 Jul 2021 01:50:11 +0100 Subject: [PATCH] Add Ctrl-Tab / Ctrl-Shift-Tab tab navigation --- chrome/content/zotero/zoteroPane.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index cf489ec677..0749bd5f5d 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -587,6 +587,22 @@ var ZoteroPane = new function() } } + // Tab navigation: Ctrl-Tab / Ctrl-Shift-Tab + if (event.ctrlKey && !event.altKey && !event.metaKey && event.key == 'Tab') { + if (event.shiftKey) { + Zotero_Tabs.selectPrev(); + event.preventDefault(); + event.stopPropagation(); + return; + } + else { + Zotero_Tabs.selectNext(); + event.preventDefault(); + event.stopPropagation(); + return; + } + } + try { // Ignore keystrokes outside of Zotero pane if (!(event.originalTarget.ownerDocument instanceof XULDocument)) {