From f8a517d2866961966a9a9b0ba31786b150aaee6e Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 7 May 2025 01:03:41 -0400 Subject: [PATCH] Force "Show Tabs Menu" menu item to update with shortcut key at startup --- chrome/content/zotero/standalone/standalone.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chrome/content/zotero/standalone/standalone.js b/chrome/content/zotero/standalone/standalone.js index 694aa4e60f..8edbd6d72e 100644 --- a/chrome/content/zotero/standalone/standalone.js +++ b/chrome/content/zotero/standalone/standalone.js @@ -98,6 +98,10 @@ const ZoteroStandalone = new function() { .setAttribute('key', Zotero.Keys.getKeyForCommand('copySelectedItemsToClipboard')); document.getElementById('key_showTabsMenu') .setAttribute('key', Zotero.Keys.getKeyForCommand('showTabsMenu')); + // Force menu to update with shortcut key at startup -- as of fx128, this is necessary + // to get the shortcut to reliably appear for the menu item without switching tabs + document.getElementById('show-tabs-menu').hidden = true; + document.getElementById('show-tabs-menu').hidden = false; if (Zotero.isMac) { document.getElementById('menu_openHelp').setAttribute('key', 'key_openHelpMac');