From 70c9bef320d63bfc3ab4772a652c7f8b3e3ec12d Mon Sep 17 00:00:00 2001 From: Martynas Bagdonas Date: Fri, 29 Apr 2022 12:22:16 +0300 Subject: [PATCH] =?UTF-8?q?Switch=20tabs=20with=20Cmd-Option-=E2=86=90/?= =?UTF-8?q?=E2=86=92=20Fixes=20#2475?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- chrome/content/zotero/zoteroPane.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 4b171f8d12..b760f8f9a2 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -652,6 +652,20 @@ var ZoteroPane = new function() return; } } + else if (event.metaKey && event.altKey) { + if (event.key == 'ArrowLeft') { + Zotero_Tabs.selectPrev(); + event.preventDefault(); + event.stopPropagation(); + return; + } + else if (event.key == 'ArrowRight') { + Zotero_Tabs.selectNext(); + event.preventDefault(); + event.stopPropagation(); + return; + } + } } // Tab navigation: Ctrl-Tab / Ctrl-Shift-Tab