diff --git a/src/plugins/hotkeyPlugin.ts b/src/plugins/hotkeyPlugin.ts index 816bb0c88a..1331354e6a 100644 --- a/src/plugins/hotkeyPlugin.ts +++ b/src/plugins/hotkeyPlugin.ts @@ -324,7 +324,7 @@ export const eventToCombination = (event: KeyboardEvent): HotkeyCombination => { ) { recordedCombination += eventKey; } - // 末尾がスペースならそれを削除 + // 修飾キーのみだった場合末尾がスペースになるので削除 recordedCombination = recordedCombination.replace(/\s$/, ""); return HotkeyCombination(recordedCombination); };