eliminate magic number

This commit is contained in:
YO4 2022-09-07 22:45:43 +09:00 committed by Nobuyoshi Nakada
parent 81e7573a64
commit 28030f7b54
Notes: git 2022-09-09 00:46:31 +09:00
1 changed files with 1 additions and 1 deletions

View File

@ -3106,7 +3106,7 @@ is_readable_console(SOCKET sock) /* call this for console only */
ret = 1;
}
else if (ir.EventType == KEY_EVENT && !ir.Event.KeyEvent.bKeyDown &&
ir.Event.KeyEvent.wVirtualKeyCode == 18 /* VK_MENU */ &&
ir.Event.KeyEvent.wVirtualKeyCode == VK_MENU /* ALT key */ &&
ir.Event.KeyEvent.uChar.UnicodeChar) {
ret = 1;
}