* fhandler_console.cc (fhandler_console::read): Recognize backspace key

using the device independent key code, rather than the device dependent
	scan code.
This commit is contained in:
Corinna Vinschen 2011-08-19 13:10:01 +00:00
parent 17e1361aa3
commit aeeaae457b
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2011-08-19 Corinna Vinschen <corinna@vinschen.de>
* fhandler_console.cc (fhandler_console::read): Recognize backspace key
using the device independent key code, rather than the device dependent
scan code.
2011-08-18 Christopher Faylor <me.cygwin2011@cgf.cx>
* dcrt0.cc (dll_crt0_0): Remove unneeded __stdcall decoration.

View File

@ -443,7 +443,7 @@ restart:
dev_state.nModifiers |= 8;
/* Allow Backspace to emit ^? and escape sequences. */
if (input_rec.Event.KeyEvent.wVirtualScanCode == 14)
if (input_rec.Event.KeyEvent.wVirtualKeyCode == VK_BACK)
{
char c = dev_state.backspace_keycode;
nread = 0;