Mikołaj Zalewski : wineconsole: Change selection on WM_KEYDOWN not WM_KEYUP.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Oct 20 08:00:34 CDT 2006


Module: wine
Branch: master
Commit: 2750a74f189802bd03c042c423957f455896931d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2750a74f189802bd03c042c423957f455896931d

Author: Mikołaj Zalewski <mikolaj at zalewski.pl>
Date:   Thu Oct 19 19:22:24 2006 +0200

wineconsole: Change selection on WM_KEYDOWN not WM_KEYUP.

---

 programs/wineconsole/user.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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)
     {




More information about the wine-cvs mailing list