From 9d0beb7c3871dbf7e0e17cdd781b70c5a3e338e3 Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Sat, 10 Jan 2026 05:57:13 -0800 Subject: [PATCH] Use 0b over 0x for flags --- src/common/input/Win32InputMode.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/common/input/Win32InputMode.ts b/src/common/input/Win32InputMode.ts index c606fcfc..c1c88cf2 100644 --- a/src/common/input/Win32InputMode.ts +++ b/src/common/input/Win32InputMode.ts @@ -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, } /**