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 /winsup/cygwin/fhandler_console.cc
parent17e1361aa35e033f443e6f1fac2a6a0eef407dcc (diff)
* fhandler_console.cc (fhandler_console::read): Recognize backspace key
using the device independent key code, rather than the device dependent scan code.
Diffstat (limited to 'winsup/cygwin/fhandler_console.cc')
-rw-r--r--winsup/cygwin/fhandler_console.cc2
1 files changed, 1 insertions, 1 deletions
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;