shithub: drawterm

Download patch

ref: 50dcc5c0f721600c26bfa8e237b6bb0c2530786a
parent: 09d3c3c9d091e8749cd65e85689f99907d6ce7d5
author: 23hiro <23hiro@gmail.com>
date: Thu Mar 17 15:01:00 EDT 2016

gui-x11: fix ctrl key release event

--- a/gui-x11/x11.c	Tue Mar 15 09:55:42 2016
+++ b/gui-x11/x11.c	Thu Mar 17 15:01:00 2016
@@ -864,7 +864,7 @@
 	if(k == XK_hyphen)
 		k = XK_minus;
 	/* Do control mapping ourselves if translator doesn't */
-	if(e->xkey.state&ControlMask && k != Kalt)
+	if(e->xkey.state&ControlMask && k != Kalt && k != Kctl)
 		k &= 0x9f;
 	if(k == NoSymbol) {
 		return;