summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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))