Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiroshiba authored May 19, 2024
1 parent e3f95e2 commit 4da51ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/hotkeyPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ export const eventToCombination = (event: KeyboardEvent): HotkeyCombination => {
) {
recordedCombination += eventKey;
}
// 末尾がスペースならそれを削除
// 修飾キーのみだった場合末尾がスペースになるので削除
recordedCombination = recordedCombination.replace(/\s$/, "");
return HotkeyCombination(recordedCombination);
};

0 comments on commit 4da51ea

Please sign in to comment.