mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 20:59:54 +00:00
msvcrt: Fix for getch() and special characters.
This commit is contained in:
parent
73190c419a
commit
2fc275f64a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user