Skip to content

Commit

Permalink
Disable the close tab shortcut when the tabs mode is not enabled (closes
Browse files Browse the repository at this point in the history
  • Loading branch information
filips123 committed Oct 8, 2022
1 parent 13d9ad9 commit cdc0524
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion native/userchrome/profile/chrome/pwa/content/browser.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -705,10 +705,11 @@ class PwaBrowser {
}

disableNewTabShortcuts () {
// New tab shortcuts are useless when tabs mode is disabled
// New tab and close tab shortcuts are useless when tabs mode is disabled
if (!xPref.get(ChromeLoader.PREF_ENABLE_TABS_MODE)) {
document.getElementById('cmd_newNavigatorTab').remove();
document.getElementById('cmd_newNavigatorTabNoEvent').remove();
document.getElementById('key_close').remove();
}
}

Expand Down

0 comments on commit cdc0524

Please sign in to comment.