summaryrefslogtreecommitdiff
path: root/packages/frontend/src/scripts
diff options
context:
space:
mode:
authorかっこかり <67428053+kakkokari-gtyih@users.noreply.github.com>2024-07-13 16:15:25 +0900
committerGitHub <noreply@github.com>2024-07-13 16:15:25 +0900
commitbcc92d546fde7a75a48074dc96096ae2083b5025 (patch)
treed3d461f26d170e12f7d433c1810b1b85da5998ff /packages/frontend/src/scripts
parentfix(frontend): すでにfocus trap対象の要素にinertがかかってい... (diff)
downloadsharkey-bcc92d546fde7a75a48074dc96096ae2083b5025.tar.gz
sharkey-bcc92d546fde7a75a48074dc96096ae2083b5025.tar.bz2
sharkey-bcc92d546fde7a75a48074dc96096ae2083b5025.zip
fix(frontend): ホットキーのレートリミットがallowRepeatを考慮しない問題を修正 (#14192)
Diffstat (limited to 'packages/frontend/src/scripts')
-rw-r--r--packages/frontend/src/scripts/hotkey.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/frontend/src/scripts/hotkey.ts b/packages/frontend/src/scripts/hotkey.ts
index ff3cbe98ac..04fb235694 100644
--- a/packages/frontend/src/scripts/hotkey.ts
+++ b/packages/frontend/src/scripts/hotkey.ts
@@ -114,6 +114,7 @@ const matchPatterns = (ev: KeyboardEvent, action: Action) => {
const key = ev.key.toLowerCase();
return patterns.some(({ which, ctrl, shift, alt }) => {
if (
+ options.allowRepeat === false &&
latestHotkey != null &&
latestHotkey.which.includes(key) &&
latestHotkey.ctrl === ctrl &&