summaryrefslogtreecommitdiff
path: root/src/client/scripts/hotkey.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2020-04-04 08:46:54 +0900
committersyuilo <syuilotan@yahoo.co.jp>2020-04-04 08:46:54 +0900
commitd4a630902d8d250b67fcd0ce2b49240786b40368 (patch)
treeb87395691e52e3b86ce40196993d492c694c5e79 /src/client/scripts/hotkey.ts
parentenhance(server): Log error message when internal error occured (diff)
downloadmisskey-d4a630902d8d250b67fcd0ce2b49240786b40368.tar.gz
misskey-d4a630902d8d250b67fcd0ce2b49240786b40368.tar.bz2
misskey-d4a630902d8d250b67fcd0ce2b49240786b40368.zip
refactor: Use ===
Diffstat (limited to 'src/client/scripts/hotkey.ts')
-rw-r--r--src/client/scripts/hotkey.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/scripts/hotkey.ts b/src/client/scripts/hotkey.ts
index 672dbedde1..7d1bb16e79 100644
--- a/src/client/scripts/hotkey.ts
+++ b/src/client/scripts/hotkey.ts
@@ -57,9 +57,9 @@ const ignoreElemens = ['input', 'textarea'];
function match(e: KeyboardEvent, patterns: action['patterns']): boolean {
const key = e.code.toLowerCase();
return patterns.some(pattern => pattern.which.includes(key) &&
- pattern.ctrl == e.ctrlKey &&
- pattern.shift == e.shiftKey &&
- pattern.alt == e.altKey &&
+ pattern.ctrl === e.ctrlKey &&
+ pattern.shift === e.shiftKey &&
+ pattern.alt === e.altKey &&
!e.metaKey
);
}