shithub: drawterm-fdroid

Download patch

ref: 7768cd9a6ec11b04eb2ff6336018cd22fa79f5ea
parent: 081c1f215399065fcd43acc4360d3c6836a98865
author: cinap_lenrek <[email protected]>
date: Sun Mar 13 18:12:20 EDT 2016

gui-x11: handle shift, ctl, caps keys

--- a/gui-x11/x11.c
+++ b/gui-x11/x11.c
@@ -814,6 +814,20 @@
 		case XK_Alt_R:
 			k = Kalt;
 			break;
+
+		case XK_Shift_L:
+		case XK_Shift_R:
+			k = Kshift;
+			break;
+		case XK_Control_L:
+		case XK_Control_R:
+			k = Kctl;
+			break;
+		case XK_Shift_Lock:
+		case XK_Caps_Lock:
+			k = Kcaps;
+			break;
+
 		case XK_F1:
 		case XK_F2:
 		case XK_F3:
@@ -828,12 +842,6 @@
 		case XK_F12:
 			k = KF|(k - XK_F1 + 1);
 			break;
-		case XK_Shift_L:
-		case XK_Shift_R:
-		case XK_Control_L:
-		case XK_Control_R:
-		case XK_Caps_Lock:
-		case XK_Shift_Lock:
 
 		case XK_Meta_L:
 		case XK_Meta_R: