Replace keyboard system with TanStack Hotkeys and jotai atoms

Remove react-hotkeys-hook, KeyboardProvider context, useRegisterShortcut
wrapper, and KeyboardHelpDialog component. Components now call TanStack
useHotkey/useHotkeySequence directly. Shared state uses jotai atoms in
lib/atoms/, shortcut metadata lives as a static const in lib/constants/.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-03 11:48:14 -05:00
co-authored by Claude Opus 4.6
parent d5e985efd9
commit ec256b7a96
11 changed files with 337 additions and 441 deletions
-14
View File
@@ -1,14 +0,0 @@
import { useEffect } from "react";
import { type ShortcutDef, useKeyboard } from "@/components/keyboard-provider";
export function useRegisterShortcut(id: string, def: ShortcutDef) {
const { registerShortcut, unregisterShortcut } = useKeyboard();
useEffect(() => {
registerShortcut(id, def);
});
useEffect(() => {
return () => unregisterShortcut(id);
}, [id, unregisterShortcut]);
}