From f1fd1d2585bd5230caea4c7b8814c2cf007e57cc Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Thu, 22 Dec 2022 16:01:59 +0900 Subject: style: add missing trailing commas (#9387) --- packages/client/src/scripts/hotkey.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'packages/client/src/scripts/hotkey.ts') diff --git a/packages/client/src/scripts/hotkey.ts b/packages/client/src/scripts/hotkey.ts index bd8c3b6cab..4a0ded637d 100644 --- a/packages/client/src/scripts/hotkey.ts +++ b/packages/client/src/scripts/hotkey.ts @@ -21,7 +21,7 @@ const parseKeymap = (keymap: Keymap) => Object.entries(keymap).map(([patterns, c const result = { patterns: [], callback, - allowRepeat: true + allowRepeat: true, } as Action; if (patterns.match(/^\(.*\)$/) !== null) { @@ -34,7 +34,7 @@ const parseKeymap = (keymap: Keymap) => Object.entries(keymap).map(([patterns, c which: [], ctrl: false, alt: false, - shift: false + shift: false, } as Pattern; const keys = part.trim().split('+').map(x => x.trim().toLowerCase()); @@ -61,7 +61,7 @@ function match(ev: KeyboardEvent, patterns: Action['patterns']): boolean { pattern.ctrl === ev.ctrlKey && pattern.shift === ev.shiftKey && pattern.alt === ev.altKey && - !ev.metaKey + !ev.metaKey, ); } -- cgit v1.2.3-freya