mirror of
https://github.com/zen-browser/desktop.git
synced 2026-05-20 12:01:27 +00:00
22 lines
939 B
C++
22 lines
939 B
C++
diff --git a/browser/components/urlbar/UrlbarController.sys.mjs b/browser/components/urlbar/UrlbarController.sys.mjs
|
|
index bb0189fbfc91b3fc3b399b077a35f7b60a3f985f..c4dd60c6fb6d7eb2288a033708836f9983530e2c 100644
|
|
--- a/browser/components/urlbar/UrlbarController.sys.mjs
|
|
+++ b/browser/components/urlbar/UrlbarController.sys.mjs
|
|
@@ -305,7 +305,6 @@ export class UrlbarController {
|
|
const isMac = AppConstants.platform == "macosx";
|
|
// Handle readline/emacs-style navigation bindings on Mac.
|
|
if (
|
|
- isMac &&
|
|
this.view.isOpen &&
|
|
event.ctrlKey &&
|
|
(event.key == "n" || event.key == "p")
|
|
@@ -456,6 +455,8 @@ export class UrlbarController {
|
|
});
|
|
}
|
|
event.preventDefault();
|
|
+ } else if (!this.input.value && !(event.ctrlKey || event.altKey || event.shiftKey)) {
|
|
+ this.browserWindow.gZenUIManager.enableCommandsMode(event);
|
|
}
|
|
break;
|
|
}
|