From 7dad8377df8901d50573d38eddb8ebbeee874a71 Mon Sep 17 00:00:00 2001 From: abaevbog Date: Thu, 2 Jan 2025 19:42:38 -0800 Subject: [PATCH] qf: default arrowUp handling on locator menulist (#4965) Do not close details panel on arrowUp when locator type menulist is focused to allow for default handling (e.g. select the next/previous option on windows). Fixes: #4953 --- chrome/content/zotero/integration/quickFormat.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/integration/quickFormat.js b/chrome/content/zotero/integration/quickFormat.js index 1f41648f5b..8f8510b0ca 100644 --- a/chrome/content/zotero/integration/quickFormat.js +++ b/chrome/content/zotero/integration/quickFormat.js @@ -2278,7 +2278,8 @@ var Zotero_QuickFormat = new function () { } } // Arrow up closes the popup - if (event.key === "ArrowUp") { + // (except on locator type dropdown to allow for default handling) + if (event.key === "ArrowUp" && event.target.tagName !== "menulist") { skipInputRefocus = true; itemPopover.hidePopup(); return stopEvent();