]> sourceware.org Git - newlib-cygwin.git/commitdiff
* fhandler_console.cc (fhandler_console::read): Recognize backspace key
authorCorinna Vinschen <corinna@vinschen.de>
Fri, 19 Aug 2011 13:10:01 +0000 (13:10 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Fri, 19 Aug 2011 13:10:01 +0000 (13:10 +0000)
using the device independent key code, rather than the device dependent
scan code.

winsup/cygwin/ChangeLog
winsup/cygwin/fhandler_console.cc

index aa00613b20b7de43e7a48e5eaf3f25bc196c569c..f4af08bbf8392066d5f0981264b436cf408f4b00 100644 (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.
index 5375721a1ebdf824dd9fc4945ce3fc3015f3ea59..6364e645d60f05e37ae3eaca051e1c3324720fe8 100644 (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;
This page took 0.033922 seconds and 5 git commands to generate.