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;
|
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;
|
||||||
|
|
Loading…
Reference in New Issue