mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-30 15:08:40 +00:00
fix: Fixed bookmarks not hiding when opening folders, b=closes #10612, c=common
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
diff --git a/browser/components/urlbar/UrlbarController.sys.mjs b/browser/components/urlbar/UrlbarController.sys.mjs
|
diff --git a/browser/components/urlbar/UrlbarController.sys.mjs b/browser/components/urlbar/UrlbarController.sys.mjs
|
||||||
index 36e3ab4a5a153230bb488b66dda7e3e7c763ca23..81f2944b939ac0963c129f86aab0b55817349401 100644
|
index 36e3ab4a5a153230bb488b66dda7e3e7c763ca23..cc4ea61914a316451fa54b01a5c8c6a305e4038a 100644
|
||||||
--- a/browser/components/urlbar/UrlbarController.sys.mjs
|
--- a/browser/components/urlbar/UrlbarController.sys.mjs
|
||||||
+++ b/browser/components/urlbar/UrlbarController.sys.mjs
|
+++ b/browser/components/urlbar/UrlbarController.sys.mjs
|
||||||
@@ -434,6 +434,8 @@ export class UrlbarController {
|
@@ -434,6 +434,8 @@ export class UrlbarController {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
+ } else {
|
+ } else if (!this.input.value && !(event.ctrlKey || event.altKey || event.shiftKey)) {
|
||||||
+ this.browserWindow.gZenUIManager.enableCommandsMode(event);
|
+ this.browserWindow.gZenUIManager.enableCommandsMode(event);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@@ -215,8 +215,10 @@ var gZenUIManager = {
|
|||||||
!el.contains(showEvent.explicitOriginalTarget) ||
|
!el.contains(showEvent.explicitOriginalTarget) ||
|
||||||
(showEvent.explicitOriginalTarget instanceof Element &&
|
(showEvent.explicitOriginalTarget instanceof Element &&
|
||||||
showEvent.explicitOriginalTarget?.closest('panel')) ||
|
showEvent.explicitOriginalTarget?.closest('panel')) ||
|
||||||
// See bug #7590: Ignore menupopup elements opening
|
// See bug #7590: Ignore menupopup elements opening.
|
||||||
showEvent.explicitOriginalTarget.tagName === 'menupopup'
|
// Also see #10612 for the exclusion of the zen-appcontent-navbar-wrapper
|
||||||
|
(showEvent.explicitOriginalTarget.tagName === 'menupopup' &&
|
||||||
|
el.id !== 'zen-appcontent-navbar-wrapper')
|
||||||
) {
|
) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user