summarylogtreecommitdiffstats
path: root/0001-f10-escape.patch
blob: 1b3f5c06b9b06351d9dd971d7c256f80886ad018 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- a/hidclient.c
+++ b/hidclient.c
@@ -799,6 +799,7 @@
 				break;
 			  // *** Special key: PAUSE
 			  case	KEY_PAUSE:	
+			  case	KEY_F10:
 				// When pressed: abort connection
 				if ( inevent->value == 0 )
 				{
@@ -889,7 +890,7 @@
 			  case	KEY_SYSRQ:	++u; //[printscr]
 			  case	KEY_F12:	++u; //F12=> code 69
 			  case	KEY_F11:	++u;
-			  case	KEY_F10:	++u;
+						++u;
 			  case	KEY_F9:		++u;
 			  case	KEY_F8:		++u;
 			  case	KEY_F7:		++u;
@@ -1360,7 +1361,7 @@
 "		openvt -s -w hidclient\n" \
 "This will even return to your xsession after hidclient terminates.\n\n" \
 "hidclient connections can be dropped at any time by pressing the PAUSE\n" \
-"key; the program will wait for other connections afterward.\n" \
+"or F10 key; the program will wait for other connections afterward.\n" \
 "To stop hidclient, press LeftCtrl+LeftAlt+Pause.\n"
 		);
 	return;