Add Ctrl-Tab / Ctrl-Shift-Tab tab navigation
This commit is contained in:
parent
3a95e2e303
commit
051a84686f
1 changed files with 16 additions and 0 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue