fix(frontend): ホットキーのレートリミットがallowRepeatを考慮しない問題を修正 (#14192)

This commit is contained in:
かっこかり 2024-07-13 16:15:25 +09:00 committed by GitHub
parent 1b175ea759
commit bcc92d546f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -114,6 +114,7 @@ const matchPatterns = (ev: KeyboardEvent, action: Action) => {
const key = ev.key.toLowerCase(); const key = ev.key.toLowerCase();
return patterns.some(({ which, ctrl, shift, alt }) => { return patterns.some(({ which, ctrl, shift, alt }) => {
if ( if (
options.allowRepeat === false &&
latestHotkey != null && latestHotkey != null &&
latestHotkey.which.includes(key) && latestHotkey.which.includes(key) &&
latestHotkey.ctrl === ctrl && latestHotkey.ctrl === ctrl &&