Switch tabs with Cmd-Option-←/→

Fixes #2475
This commit is contained in:
Martynas Bagdonas 2022-04-29 12:22:16 +03:00
parent 3bfc6740c4
commit 70c9bef320

View file

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