@@ -10,8 +10,6 @@
|
||||
|
||||
onMount(() => {
|
||||
const listener = (ev: KeyboardEvent) => {
|
||||
console.log(ev.key);
|
||||
|
||||
if ((ev.ctrlKey || ev.altKey) && (ev.key === "Escape" || ev.key.toLowerCase() === "q")) {
|
||||
dispatch("close");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user