mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-17 06:56:03 +01:00
feat(web/menu): include backspace in close keys
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user