Skip to content

Commit

Permalink
fix: lintエラーを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
tsym77yoshi committed May 5, 2024
1 parent c0508ac commit 2292a58
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 @@ -315,14 +315,14 @@ export const eventToCombination = (event: KeyboardEvent): HotkeyCombination => {
}
// event.codeから以前のevent.key形式へと変換
// 列挙するのは将来的に変更する
let eventKey = event.code
const eventKey = event.code
.replace(/Key|Digit|Numpad/, "")
.replace("Minus", "-")
.replace("Slash", "/");
// 英字 数字 上下左右 Enter Space Backspace Delete Escape F1~ - /のみ認める
if (
/^([A-Z]|\d|Arrow(Up|Down|Left|Right)|Enter|Space|Backspace|Delete|Escape|F\d+|-|\/)$/.test(
eventKey
eventKey,

Check failure on line 325 in src/plugins/hotkeyPlugin.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `,`

Check failure on line 325 in src/plugins/hotkeyPlugin.ts

View workflow job for this annotation

GitHub Actions / build-test

Delete `,`
)
) {
recordedCombination += eventKey;
Expand Down

0 comments on commit 2292a58

Please sign in to comment.