msvcrt: Fix for getch() and special characters.

This commit is contained in:
Eric Pouech 2008-06-01 22:04:15 +02:00 committed by Alexandre Julliard
parent 73190c419a
commit 2fc275f64a
1 changed files with 3 additions and 3 deletions

View File

@ -139,11 +139,11 @@ int CDECL _getch(void)
{ {
unsigned idx; 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; 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; idx = CTRL_CHAR;
else if (ir.Event.KeyEvent.wVirtualScanCode & SHIFT_PRESSED) else if (ir.Event.KeyEvent.dwControlKeyState & SHIFT_PRESSED)
idx = SHIFT_CHAR; idx = SHIFT_CHAR;
else else
idx = NORMAL_CHAR; idx = NORMAL_CHAR;