Fix deprecations

This commit is contained in:
Zaid Abdulla committed 2020-10-25 23:34:05 -07:00
1 parent c8a6eb4c72
commit a43bba2405
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -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();
});