From f509e9063ab7a5e626767dd43ee2c34dbf492e2e Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 10 Feb 2022 01:34:24 -0500 Subject: [PATCH] Fix arrow keys in View menu Arrow keys still step through `collapsed` menuitems, whereas `hidden` properly hides them from key navigation. --- chrome/content/zotero/standalone/standalone.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/standalone/standalone.js b/chrome/content/zotero/standalone/standalone.js index eaab188ab2..8d6d29ae8b 100644 --- a/chrome/content/zotero/standalone/standalone.js +++ b/chrome/content/zotero/standalone/standalone.js @@ -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) {