Skip to content

Commit

Permalink
Update src/plugins/hotkeyPlugin.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Hiroshiba <hihokaruta@gmail.com>
  • Loading branch information
tsym77yoshi and Hiroshiba authored May 12, 2024
1 parent 1669c4c commit 9ba0ec5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/hotkeyPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,8 @@ export const eventToCombination = (event: KeyboardEvent): HotkeyCombination => {
if (event.metaKey) {
recordedCombination += "Meta ";
}
// event.codeから以前のevent.key形式へと変換
// 列挙するのは将来的に変更する
// event.codeからevent.key形式へと変換
// TODO: 主要なキーも使えるようにする
const eventKey = event.code
.replace(/Key|Digit|Numpad/, "")
.replace("Minus", "-")
Expand Down

0 comments on commit 9ba0ec5

Please sign in to comment.