wineconsole: change selection on WM_KEYDOWN not WM_KEYUP

Mikołaj Zalewski mikolaj at zalewski.pl
Wed Oct 18 08:51:34 CDT 2006


The next three patches adds improvements to the wine console suggested 
in bug #6397. The change from WM_KEYUP to WM_KEYDOWN allows the use of 
key repeats - WM_KEYUP is sent only once but WM_KEYDOWN may be sent 
several times.
-------------- next part --------------
diff --git a/programs/wineconsole/user.c b/programs/wineconsole/user.c
index fffd40f..e1efda2 100644
--- a/programs/wineconsole/user.c
+++ b/programs/wineconsole/user.c
@@ -926,7 +926,7 @@ static void WCUSER_HandleSelectionKey(st
     DWORD       state = WCUSER_GetCtrlKeyState(keyState) & ~(CAPSLOCK_ON|NUMLOCK_ON|SCROLLLOCK_ON);
     COORD       c1, c2;
 
-    if (down) return;
+    if (!down) return;
 
     switch (state)
     {
-- 
1.4.2.3


More information about the wine-patches mailing list