aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2011-08-19 13:10:01 +0000
committerCorinna Vinschen <corinna@vinschen.de>2011-08-19 13:10:01 +0000
commitaeeaae457b1726accde5ecf0ac715c3a2aadf929 (patch)
tree9162e0389468123461f3ce5a934aebaae025659b
parent17e1361aa35e033f443e6f1fac2a6a0eef407dcc (diff)
downloadnewlib-aeeaae457b1726accde5ecf0ac715c3a2aadf929.zip
newlib-aeeaae457b1726accde5ecf0ac715c3a2aadf929.tar.gz
newlib-aeeaae457b1726accde5ecf0ac715c3a2aadf929.tar.bz2
* fhandler_console.cc (fhandler_console::read): Recognize backspace key
using the device independent key code, rather than the device dependent scan code.
-rw-r--r--winsup/cygwin/ChangeLog6
-rw-r--r--winsup/cygwin/fhandler_console.cc2
2 files changed, 7 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index aa00613..f4af08b 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -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.
diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc
index 5375721..6364e64 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;