code: drawterm

Download patch

ref: f473ac462b3a4464f9ec315c48cee6426dfd5c77
parent: 54944afbf91398679d407cb9933f4b5c5fbe5d33
author: Yaroslav <yarikos@gmail.com>
date: Sat Jul 3 02:49:48 EDT 2010

x11: pass F1-F12 keys

--- a/gui-x11/x11.c
+++ b/gui-x11/x11.c
@@ -1198,6 +1198,20 @@
 		case XK_Alt_R:
 			k = Kalt;
 			break;
+		case XK_F1:
+		case XK_F2:
+		case XK_F3:
+		case XK_F4:
+		case XK_F5:
+		case XK_F6:
+		case XK_F7:
+		case XK_F8:
+		case XK_F9:
+		case XK_F10:
+		case XK_F11:
+		case XK_F12:
+			k = KF|(k - XK_F1 + 1);
+			break;
 		case XK_Shift_L:
 		case XK_Shift_R:
 		case XK_Control_L: