From 88482bd7766712dca8896b7928af0cc912a4f19a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Wed, 7 Feb 2024 17:18:43 +0200 Subject: [PATCH] Do not register the menu access key handlers multiple times --- chrome/content/zotero/menuAccessKey.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/menuAccessKey.js b/chrome/content/zotero/menuAccessKey.js index dce9933b19..435b275c1c 100644 --- a/chrome/content/zotero/menuAccessKey.js +++ b/chrome/content/zotero/menuAccessKey.js @@ -42,7 +42,8 @@ else { document.addEventListener('DOMContentLoaded', init); } -function init() { +function init(event) { + if (event.target !== document) return; setAccessKeysHidden(true); menuBar = document.querySelector("#main-menubar");