mirror of
https://github.com/zotero/zotero.git
synced 2026-10-05 02:43:38 +00:00
Fix arrow keys in View menu
Arrow keys still step through `collapsed` menuitems, whereas `hidden` properly hides them from key navigation.
This commit is contained in:
parent
76c7e832bb
commit
f509e9063a
1 changed files with 2 additions and 2 deletions
|
|
@ -131,8 +131,8 @@ const ZoteroStandalone = new function() {
|
|||
}
|
||||
|
||||
this.switchMenuType = function (type) {
|
||||
document.querySelectorAll('.menu-type-library, .menu-type-reader').forEach(el => el.collapsed = true);
|
||||
document.querySelectorAll('.menu-type-' + type).forEach(el => el.collapsed = false);
|
||||
document.querySelectorAll('.menu-type-library, .menu-type-reader').forEach(el => el.hidden = true);
|
||||
document.querySelectorAll('.menu-type-' + type).forEach(el => el.hidden = false);
|
||||
};
|
||||
|
||||
this.onReaderCmd = function (cmd) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue