Use 0b over 0x for flags

This commit is contained in:
Daniel Imms 2026-01-10 05:57:13 -08:00
parent f88650ec1c
commit 9d0beb7c38
No known key found for this signature in database
GPG Key ID: E5CF412B63651C69

View File

@ -21,15 +21,15 @@ import { C0 } from 'common/data/EscapeSequences';
* Win32 control key state flags (from Windows API).
*/
export const enum Win32ControlKeyState {
RIGHT_ALT_PRESSED = 0x0001,
LEFT_ALT_PRESSED = 0x0002,
RIGHT_CTRL_PRESSED = 0x0004,
LEFT_CTRL_PRESSED = 0x0008,
SHIFT_PRESSED = 0x0010,
NUMLOCK_ON = 0x0020,
SCROLLLOCK_ON = 0x0040,
CAPSLOCK_ON = 0x0080,
ENHANCED_KEY = 0x0100,
RIGHT_ALT_PRESSED = 0b000000001,
LEFT_ALT_PRESSED = 0b000000010,
RIGHT_CTRL_PRESSED = 0b000000100,
LEFT_CTRL_PRESSED = 0b000001000,
SHIFT_PRESSED = 0b000010000,
NUMLOCK_ON = 0b000100000,
SCROLLLOCK_ON = 0b001000000,
CAPSLOCK_ON = 0b010000000,
ENHANCED_KEY = 0b100000000,
}
/**