Force "Show Tabs Menu" menu item to update with shortcut key at startup

This commit is contained in:
Dan Stillman 2025-05-07 01:03:41 -04:00
parent 61b62d0a02
commit f8a517d286

View file

@ -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');