mirror of
https://github.com/zen-browser/components.git
synced 2025-07-07 21:09:58 +02:00
Refactor ZenGlanceManager.mjs to close glance only when Escape key is pressed and there is a current browser
This commit is contained in:
parent
43be9a44c5
commit
6db4adf0f6
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
onKeyDown(event) {
|
onKeyDown(event) {
|
||||||
if (event.key === "Escape") {
|
if (event.key === "Escape" && this.#currentBrowser) {
|
||||||
this.closeGlance();
|
this.closeGlance();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue