This commit is contained in:
Shusui MOYATANI
2023-03-07 02:21:26 +09:00
parent f79365dbc4
commit f2b1360fd5
19 changed files with 137 additions and 71 deletions

View File

@@ -41,7 +41,6 @@ const useShortcutKeys = ({ shortcuts = defaultShortcut, onShortcut }: UseShortcu
onMount(() => {
const handleKeydown: JSX.EventHandler<Window, KeyboardEvent> = (ev) => {
console.log(ev);
if (ev.type !== 'keydown') return;
if (ev.target instanceof HTMLTextAreaElement || ev.target instanceof HTMLInputElement) return;