feat(web/menu): include backspace in close keys

This commit is contained in:
Luke
2022-08-04 15:04:49 +02:00
committed by Luke
parent ce0bea3259
commit ed3e7ac733
+1 -1
View File
@@ -126,7 +126,7 @@ const ListMenu: React.FC = () => {
if (!visible) return;
const keyHandler = (e: KeyboardEvent) => {
if (["Escape"].includes(e.code)) closeMenu();
if (["Escape", "Backspace"].includes(e.code)) closeMenu();
};
window.addEventListener("keydown", keyHandler);