Fix deprecations
This commit is contained in:
1 parent
c8a6eb4c72
commit
a43bba2405
2 files changed
+4
-4
No files matched your search
+1
-1
@@ -83,7 +83,7 @@ export function render(): Children {
|
||||
}
|
||||
|
||||
document.addEventListener("keydown", (e) => {
|
||||
if (overlayCallback && e.keyCode === 27 && close(overlayCallback, false))
|
||||
if (overlayCallback && e.key === "Escape" && close(overlayCallback, false))
|
||||
m.redraw();
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user