Skip to content

Commit 2f048ef

Browse files
committed
Operator precedence 🤦
1 parent 7c2b91a commit 2f048ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎ui/src/components/popovers/PasteModal.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const hidKeyboardPayload = (keys: number[], modifier: number) => {
1818
};
1919

2020
const modifierCode = (shift?: boolean, altRight?: boolean) => {
21-
return shift ? modifiers["ShiftLeft"] : 0
21+
return (shift ? modifiers["ShiftLeft"] : 0)
2222
| (altRight ? modifiers["AltRight"] : 0)
2323
}
2424
const noModifier = 0

0 commit comments

Comments
 (0)