Skip to content

Commit 9d0beb7

Browse files
committed
Use 0b over 0x for flags
1 parent f88650e commit 9d0beb7

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

src/common/input/Win32InputMode.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ import { C0 } from 'common/data/EscapeSequences';
2121
* Win32 control key state flags (from Windows API).
2222
*/
2323
export const enum Win32ControlKeyState {
24-
RIGHT_ALT_PRESSED = 0x0001,
25-
LEFT_ALT_PRESSED = 0x0002,
26-
RIGHT_CTRL_PRESSED = 0x0004,
27-
LEFT_CTRL_PRESSED = 0x0008,
28-
SHIFT_PRESSED = 0x0010,
29-
NUMLOCK_ON = 0x0020,
30-
SCROLLLOCK_ON = 0x0040,
31-
CAPSLOCK_ON = 0x0080,
32-
ENHANCED_KEY = 0x0100,
24+
RIGHT_ALT_PRESSED = 0b000000001,
25+
LEFT_ALT_PRESSED = 0b000000010,
26+
RIGHT_CTRL_PRESSED = 0b000000100,
27+
LEFT_CTRL_PRESSED = 0b000001000,
28+
SHIFT_PRESSED = 0b000010000,
29+
NUMLOCK_ON = 0b000100000,
30+
SCROLLLOCK_ON = 0b001000000,
31+
CAPSLOCK_ON = 0b010000000,
32+
ENHANCED_KEY = 0b100000000,
3333
}
3434

3535
/**

0 commit comments

Comments
 (0)