Commit c868cd34 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Fix <return> key (somehow we get a control keystate).

parent 61e18d46
......@@ -112,10 +112,11 @@ CONSOLE_string_to_IR( HANDLE hConsoleInput,unsigned char *buf,int len) {
ir.Event.KeyEvent.wVirtualScanCode = 0x0e;
ir.Event.KeyEvent.wVirtualKeyCode = VK_BACK;
} else {
if (inchar=='\n') {
if ((inchar=='\n')||(inchar=='\r')) {
ir.Event.KeyEvent.uChar.AsciiChar = '\r';
ir.Event.KeyEvent.wVirtualKeyCode = VK_RETURN;
ir.Event.KeyEvent.wVirtualScanCode = 0x1c;
ir.Event.KeyEvent.dwControlKeyState = 0;
} else {
if (inchar<' ') {
/* FIXME: find good values for ^X */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment