Handle backspace correctly.

This commit is contained in:
Ove Kaaven 2000-02-03 00:45:04 +00:00 committed by Alexandre Julliard
parent 318f4cefd2
commit 5d6d5014fa

View File

@ -106,7 +106,7 @@ CONSOLE_string_to_IR( HANDLE hConsoleInput,unsigned char *buf,int len) {
);
ir.Event.KeyEvent.uChar.AsciiChar = inchar;
if (inchar==127) { /* backspace */
if ((inchar==127)||(inchar=='\b')) { /* backspace */
ir.Event.KeyEvent.uChar.AsciiChar = '\b'; /* FIXME: hmm */
ir.Event.KeyEvent.wVirtualScanCode = 0x0e;
ir.Event.KeyEvent.wVirtualKeyCode = VK_BACK;