diff options
Diffstat (limited to 'frontend/src/lib/Shortcuts.ts')
-rw-r--r-- | frontend/src/lib/Shortcuts.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/lib/Shortcuts.ts b/frontend/src/lib/Shortcuts.ts index 063bd40..300ddcb 100644 --- a/frontend/src/lib/Shortcuts.ts +++ b/frontend/src/lib/Shortcuts.ts @@ -37,7 +37,7 @@ type ModeSwitch = (typeof modeSwitches)[number]; function isModeSwitch(s: string): s is ModeSwitch { // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument - return modeSwitches.indexOf(s as any) !== -1; + return modeSwitches.includes(s as any); } type Key = Letter | Special; |