Fix PDF reader up/down keyboard navigation regression in RTL mode
This commit is contained in:
parent
59caaf56ea
commit
769bfbc892
2 changed files with 7 additions and 5 deletions
|
@ -519,14 +519,16 @@ var ZoteroPane = new function()
|
|||
let itemPaneToggle = document.getElementById('zotero-tb-toggle-item-pane');
|
||||
let notesPaneToggle = document.getElementById('zotero-tb-toggle-notes-pane');
|
||||
// Using ArrowDown and ArrowUp to be consistent with pdf-reader
|
||||
if (!Zotero.rtl && (event.key === 'ArrowRight' || event.key === 'ArrowDown')
|
||||
|| Zotero.rtl && (event.key === 'ArrowLeft' || event.key === 'ArrowUp')) {
|
||||
if (!Zotero.rtl && event.key === 'ArrowRight'
|
||||
|| Zotero.rtl && event.key === 'ArrowLeft'
|
||||
|| event.key === 'ArrowDown') {
|
||||
if (event.target === itemPaneToggle) {
|
||||
notesPaneToggle.focus();
|
||||
}
|
||||
}
|
||||
else if (!Zotero.rtl && (event.key === 'ArrowLeft' || event.key === 'ArrowUp')
|
||||
|| Zotero.rtl && (event.key === 'ArrowRight' || event.key === 'ArrowDown')) {
|
||||
else if (!Zotero.rtl && event.key === 'ArrowLeft'
|
||||
|| Zotero.rtl && event.key === 'ArrowRight'
|
||||
|| event.key === 'ArrowUp') {
|
||||
if (event.target === notesPaneToggle) {
|
||||
itemPaneToggle.focus();
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 702fd99ca58801be27b25ee550331b9615f27184
|
||||
Subproject commit cca2dcbe5ce1d4566bb6cd28f18c19c030e0c80a
|
Loading…
Reference in a new issue