From aeeaae457b1726accde5ecf0ac715c3a2aadf929 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 19 Aug 2011 13:10:01 +0000 Subject: [PATCH] * fhandler_console.cc (fhandler_console::read): Recognize backspace key using the device independent key code, rather than the device dependent scan code. --- winsup/cygwin/ChangeLog | 6 ++++++ winsup/cygwin/fhandler_console.cc | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index aa00613b2..f4af08bbf 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,9 @@ +2011-08-19 Corinna Vinschen + + * 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 * dcrt0.cc (dll_crt0_0): Remove unneeded __stdcall decoration. diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc index 5375721a1..6364e645d 100644 --- a/winsup/cygwin/fhandler_console.cc +++ b/winsup/cygwin/fhandler_console.cc @@ -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; -- 2.43.5