Skip to content

Commit 88db8cc

Browse files
code-asheraslilac
andauthored
Swap undefined check for in
Co-authored-by: Kayla Washburn <mckayla@hey.com>
1 parent 85ffce8 commit 88db8cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/src/pages/TerminalPage/TerminalPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ const useReloading = (isDisconnected: boolean) => {
496496
};
497497

498498
const isModifier = (event: KeyboardEvent): boolean => {
499-
return typeof modifierKeyState[event.key] !== "undefined";
499+
return event.key in modifierKeyState;
500500
};
501501

502502
const isModified = (): boolean => {

0 commit comments

Comments
 (0)