feat: add many keyboard shortcuts

This commit is contained in:
Zoe
2026-02-26 08:41:22 -06:00
parent d22d08e99f
commit e6bb005f11
5 changed files with 61 additions and 8 deletions
-5
View File
@@ -14,11 +14,6 @@ export const useKeyboardShortcuts = () => {
};
const handleKeyDown = (event: KeyboardEvent) => {
const isInput = ['INPUT', 'TEXTAREA'].includes((event.target as HTMLElement).tagName);
if (isInput && !event.ctrlKey && !event.metaKey && event.key !== 'Escape') {
return;
}
const keys: string[] = [];
if (event.ctrlKey) keys.push('ctrl');
if (event.metaKey) keys.push('meta');