feat: add keyboard shortcut help modal triggered by ? key

This commit is contained in:
Your Name
2026-02-15 20:32:32 +02:00
parent 43858357fe
commit a1deae2650
3 changed files with 86 additions and 0 deletions

View File

@@ -41,6 +41,12 @@ export function useKeyboardShortcuts(): void {
document.dispatchEvent(new CustomEvent("close-all-modals"));
return;
}
if (e.key === "?" || (e.shiftKey && e.key === "/")) {
e.preventDefault();
document.dispatchEvent(new CustomEvent("open-shortcut-help"));
return;
}
}
document.addEventListener("keydown", handleKeyDown);