dump console bug fix
eric
eric.pouech at wanadoo.fr
Thu Jan 10 13:49:36 CST 2002
the console editline code was kinda buggy when some lock states
(capslock, numlock...) were turned on
this should fix it
A+
--
---------------
Eric Pouech (http://perso.wanadoo.fr/eric.pouech/)
"The future will be better tomorrow", Vice President Dan Quayle
-------------- next part --------------
Name: console
ChangeLog: fix some bad behavior when some XXX lock were turned onvi
GenDate: 2002/01/10 19:47:57 UTC
ModifiedFiles: win32/editline.c
AddedFiles:
===================================================================
RCS file: /home/cvs/cvsroot/wine/wine/win32/editline.c,v
retrieving revision 1.2
diff -u -u -r1.2 editline.c
--- win32/editline.c 21 Dec 2001 20:29:10 -0000 1.2
+++ win32/editline.c 10 Jan 2002 19:46:39 -0000
@@ -632,6 +632,7 @@
KeyEntry* ke;
unsigned ofs;
void (*func)(struct WCEL_Context* ctx);
+ DWORD ks;
memset(&ctx, 0, sizeof(ctx));
ctx.hConIn = hConsoleIn;
@@ -659,11 +660,13 @@
/* EPP WCEL_Dump(&ctx, "before func"); */
ofs = ctx.ofs;
+ /* mask out some bits which don't interest us */
+ ks = ir.Event.KeyEvent.dwControlKeyState & ~(NUMLOCK_ON|SCROLLLOCK_ON|CAPSLOCK_ON);
func = NULL;
for (km = (use_emacs) ? EmacsKeyMap : Win32KeyMap; km->entries != NULL; km++)
{
- if (km->keyState != ir.Event.KeyEvent.dwControlKeyState)
+ if (km->keyState != ks)
continue;
if (km->chkChar)
{
More information about the wine-patches
mailing list