summaryrefslogtreecommitdiff
path: root/win32
diff options
context:
space:
mode:
Diffstat (limited to 'win32')
-rw-r--r--win32/win32.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/win32/win32.c b/win32/win32.c
index 6f1ee51206..24990a00d3 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -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);
}