Add Ctrl-Tab / Ctrl-Shift-Tab tab navigation

This commit is contained in:
J. Ryan Stinnett 2021-07-11 01:50:11 +01:00
parent 3a95e2e303
commit 051a84686f

View file

@ -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)) {