From 2fc275f64a18973f7f969c8971d8323cec327ee5 Mon Sep 17 00:00:00 2001 From: Eric Pouech Date: Sun, 1 Jun 2008 22:04:15 +0200 Subject: [PATCH] msvcrt: Fix for getch() and special characters. --- dlls/msvcrt/console.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/msvcrt/console.c b/dlls/msvcrt/console.c index ab1cd94e413..21bcf1683b0 100644 --- a/dlls/msvcrt/console.c +++ b/dlls/msvcrt/console.c @@ -139,11 +139,11 @@ int CDECL _getch(void) { unsigned idx; - if (ir.Event.KeyEvent.wVirtualScanCode & (LEFT_ALT_PRESSED | RIGHT_ALT_PRESSED)) + if (ir.Event.KeyEvent.dwControlKeyState & (LEFT_ALT_PRESSED | RIGHT_ALT_PRESSED)) idx = ALT_CHAR; - else if (ir.Event.KeyEvent.wVirtualScanCode & (LEFT_CTRL_PRESSED | RIGHT_CTRL_PRESSED) ) + else if (ir.Event.KeyEvent.dwControlKeyState & (LEFT_CTRL_PRESSED | RIGHT_CTRL_PRESSED) ) idx = CTRL_CHAR; - else if (ir.Event.KeyEvent.wVirtualScanCode & SHIFT_PRESSED) + else if (ir.Event.KeyEvent.dwControlKeyState & SHIFT_PRESSED) idx = SHIFT_CHAR; else idx = NORMAL_CHAR; -- 2.11.4.GIT