Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2011-08-19 17:10:01 +0400
committerCorinna Vinschen <corinna@vinschen.de>2011-08-19 17:10:01 +0400
commitaeeaae457b1726accde5ecf0ac715c3a2aadf929 (patch)
tree9162e0389468123461f3ce5a934aebaae025659b
parent17e1361aa35e033f443e6f1fac2a6a0eef407dcc (diff)
* 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 aa00613b2..f4af08bbf 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 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;