diff options
-rw-r--r-- | win32/termios.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/win32/termios.c b/win32/termios.c index 708acfa9f..605f73328 100644 --- a/win32/termios.c +++ b/win32/termios.c | |||
@@ -40,7 +40,8 @@ int64_t FAST_FUNC read_key(int fd, char *buf UNUSED_PARAM, int timeout) | |||
40 | state = record.Event.KeyEvent.dwControlKeyState; | 40 | state = record.Event.KeyEvent.dwControlKeyState; |
41 | if (!record.Event.KeyEvent.bKeyDown) { | 41 | if (!record.Event.KeyEvent.bKeyDown) { |
42 | /* ignore all key up events except Alt */ | 42 | /* ignore all key up events except Alt */ |
43 | if (alt_pressed && !(state & LEFT_ALT_PRESSED)) | 43 | if (alt_pressed && !(state & LEFT_ALT_PRESSED) && |
44 | record.Event.KeyEvent.wVirtualKeyCode == VK_MENU) | ||
44 | alt_pressed = FALSE; | 45 | alt_pressed = FALSE; |
45 | else | 46 | else |
46 | continue; | 47 | continue; |