summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2010-07-18 13:27:52 +0100
committerJon TURNEY <jon.turney@dronecode.org.uk>2012-06-25 22:00:18 +0100
commitf4ca158413cb0517e14ff867f6d8728d2f0345b0 (patch)
tree35856157f71baff606f54c7923c9d9f56ca9a41d
parent419ad60dde18319fd33127050b54ba147965eb6e (diff)
Cygwin/X: Tidy up fake ctrl-l keypress detection code
Tidy up fake ctrl-l keypress detection code Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
-rw-r--r--hw/xwin/winkeybd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/hw/xwin/winkeybd.c b/hw/xwin/winkeybd.c
index 0496c40ab..456e88aed 100644
--- a/hw/xwin/winkeybd.c
+++ b/hw/xwin/winkeybd.c
@@ -424,10 +424,9 @@ winIsFakeCtrl_L (UINT message, WPARAM wParam, LPARAM lParam)
lastWasControlL = FALSE;
- /* Is next press an Alt_R with the same timestamp? */
+ /* Is next release an Alt_R with the same timestamp? */
+
if (fReturn
- && (msgNext.message == WM_KEYUP
- || msgNext.message == WM_SYSKEYUP)
&& msgNext.wParam == VK_MENU
&& msgNext.time == lTime
&& (HIWORD (msgNext.lParam) & KF_EXTENDED))