Refactor ZenPinnedTabManager and ZenUIManager for improved tab closing behavior and URL bar handling

This commit is contained in:
mr. M
2025-02-03 19:42:28 +01:00
parent d9c8609d43
commit 88fbae4bec
7 changed files with 62 additions and 50 deletions

View File

@@ -450,7 +450,7 @@
}
}
_onCloseTabShortcut(event, selectedTab = gBrowser.selectedTab) {
_onCloseTabShortcut(event, selectedTab = gBrowser.selectedTab, behavior = lazy.zenPinnedTabCloseShortcutBehavior) {
if (!selectedTab?.pinned) {
return;
}
@@ -458,8 +458,6 @@
event.stopPropagation();
event.preventDefault();
const behavior = lazy.zenPinnedTabCloseShortcutBehavior;
switch (behavior) {
case 'close':
this._removePinnedAttributes(selectedTab, true);