feat: add many keyboard shortcuts
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user