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

This commit is contained in:
Luke
2022-08-01 12:25:44 +02:00
committed by Luke
parent ce0bea3259
commit ed3e7ac733

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);