Refactor ZenGlanceManager.mjs to prevent default behavior and stop event propagation when Escape key is pressed and there is a current browser

This commit is contained in:
mr. M 2024-10-30 20:50:43 +01:00
parent 6db4adf0f6
commit 5e791df74c
No known key found for this signature in database
GPG key ID: CBD57A2AEDBDA1FB

View file

@ -66,6 +66,8 @@
onKeyDown(event) {
if (event.key === "Escape" && this.#currentBrowser) {
event.preventDefault();
event.stopPropagation();
this.closeGlance();
}
}