From: Chris Hanson Date: Sat, 31 Jan 2004 02:16:53 +0000 (+0000) Subject: Don't specially handle control/meta-modified alphabetic keys; this X-Git-Tag: 20090517-FFI~1700 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=ec332e4784b95a38090e74b3f4847a97b3397f18;p=mit-scheme.git Don't specially handle control/meta-modified alphabetic keys; this appears to be a broken optimization from long ago. Thanks to Joe Marshall for figuring it out. --- diff --git a/v7/src/microcode/ntscreen.c b/v7/src/microcode/ntscreen.c index 60aa094e9..3b322b851 100644 --- a/v7/src/microcode/ntscreen.c +++ b/v7/src/microcode/ntscreen.c @@ -1,8 +1,9 @@ /* -*-C-*- -$Id: ntscreen.c,v 1.50 2003/02/14 18:48:12 cph Exp $ +$Id: ntscreen.c,v 1.51 2004/01/31 02:16:53 cph Exp $ -Copyright 1993-2002 Massachusetts Institute of Technology +Copyright 1993,1996,1997,1998,1999,2000 Massachusetts Institute of Technology +Copyright 2002,2004 Massachusetts Institute of Technology This file is part of MIT/GNU Scheme. @@ -23,7 +24,6 @@ USA. */ -/* #include */ #include #include "nt.h" #include "ntscreen.h" @@ -2110,23 +2110,7 @@ process_keydown (HWND handle, UINT message, WPARAM wparam, LPARAM lparam) } /* Otherwise, handle translation directly, as otherwise Windows - will do the wrong thing. */ - - /* Don't translate modified alphabetic keystrokes, so the user - doesn't need to constantly switch layout to type control or meta - keystrokes when the normal layout translates alphabetic - characters to non-ascii characters. */ - if (('A' <= wparam) && (wparam <= 'Z')) - { - make_key_event - (handle, wparam, lparam, - (((modifier_set_p (VK_SHIFT)) || (modifier_set_p (VK_CAPITAL))) - ? wparam - : (wparam + ('a' - 'A')))); - return (1); - } - - /* OK, here's the real hair. Translate the unmodified keystroke to + will do the wrong thing. Translate the unmodified keystroke to the corresponding character(s), then add the modifiers back in. */ { BYTE keystate [256];