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…
Reference in a new issue