win32.c additional fix: is_readable_console
classic console(conhost.exe) reports an input with ALT+NUMPAD as VK_MENU, KeyUp, and uChar!=0. additional fix for #5634
This commit is contained in:
parent
7a849e1903
commit
81e7573a64
Notes:
git
2022-09-09 00:46:31 +09:00
@ -3105,6 +3105,11 @@ is_readable_console(SOCKET sock) /* call this for console only */
|
||||
ir.Event.KeyEvent.uChar.UnicodeChar) {
|
||||
ret = 1;
|
||||
}
|
||||
else if (ir.EventType == KEY_EVENT && !ir.Event.KeyEvent.bKeyDown &&
|
||||
ir.Event.KeyEvent.wVirtualKeyCode == 18 /* VK_MENU */ &&
|
||||
ir.Event.KeyEvent.uChar.UnicodeChar) {
|
||||
ret = 1;
|
||||
}
|
||||
else {
|
||||
ReadConsoleInputW((HANDLE)sock, &ir, 1, &n);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user