1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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

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;
}