ref: 50dcc5c0f721600c26bfa8e237b6bb0c2530786a
parent: 09d3c3c9d091e8749cd65e85689f99907d6ce7d5
author: 23hiro <23hiro@gmail.com>
date: Thu Mar 17 16:01:00 EDT 2016
gui-x11: fix ctrl key release event
--- a/gui-x11/x11.c
+++ b/gui-x11/x11.c
@@ -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;