Revert "記録するホットキーはレートリミット式にする"

This reverts commit 40a7509286.
This commit is contained in:
kakkokari-gtyih 2024-07-10 00:01:18 +09:00
parent 33523d8dfa
commit bdac34273e
1 changed files with 0 additions and 10 deletions

View File

@ -131,13 +131,7 @@ const matchPatterns = (ev: KeyboardEvent, action: Action) => {
});
};
let lastHotKeyStoreTimer: number | null = null;
const storePattern = (ev: KeyboardEvent, callback: CallbackFunction) => {
if (lastHotKeyStoreTimer != null) {
clearTimeout(lastHotKeyStoreTimer);
}
latestHotkey = {
which: [ev.key.toLowerCase()],
ctrl: ev.ctrlKey || ev.metaKey,
@ -145,10 +139,6 @@ const storePattern = (ev: KeyboardEvent, callback: CallbackFunction) => {
shift: ev.shiftKey,
callback,
};
lastHotKeyStoreTimer = window.setTimeout(() => {
latestHotkey = null;
}, 500);
};
const parseKeyCode = (input?: string | null) => {