mirror of
https://github.com/ParthJadhav/Verve.git
synced 2026-06-19 07:37:17 +00:00
chore: prevent adding global listener for esc
This commit is contained in:
+4
-2
@@ -23,8 +23,10 @@ const app = new App({
|
||||
preferences.set(key, preferencesData[key]);
|
||||
});
|
||||
|
||||
await register('esc', () => {
|
||||
appWindow.hide();
|
||||
document.addEventListener("keydown", (event) => {
|
||||
if (event.key === "Escape") {
|
||||
appWindow.hide();
|
||||
}
|
||||
});
|
||||
|
||||
// Listen for Menu Bar event to open preferences emitted from main.rs
|
||||
|
||||
Reference in New Issue
Block a user