[PATCH xproto 1/2] Add XF86XK_WiMAX and XF86XK_Rfkill

Hans de Goede hdegoede at redhat.com
Wed May 10 14:59:38 UTC 2017


Add Keysyms corresponding to the evdev WIMAX and RFKILL keys, we already
have Keysyms for WLAN and UWB from linux/input-event-codes.h:

 #define KEY_WLAN                238
 #define KEY_UWB                 239

But not for the WWAN and generic RFKILL keys:

 #define KEY_WWAN                246     /* Wireless WAN (LTE, UMTS, GSM, etc.) */
 #define KEY_WIMAX               KEY_WWAN
 #define KEY_RFKILL              247     /* Key that controls all radios */

This commits add Keysyms for these so that we can add proper mappings for
them to xkb.

Cc: Bastien Nocera <bnocera at redhat.com>
Cc: Benjamin Berg <bberg at redhat.com>
Signed-off-by: Hans de Goede <hdegoede at redhat.com>
---
 XF86keysym.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/XF86keysym.h b/XF86keysym.h
index 89d40b8..809f386 100644
--- a/XF86keysym.h
+++ b/XF86keysym.h
@@ -199,6 +199,9 @@
 
 #define XF86XK_Keyboard		0x1008FFB3   /* User defined keyboard related action */
 
+#define XF86XK_WiMAX		0x1008FFB4   /* Toggle WiMAX radio */
+#define XF86XK_Rfkill		0x1008FFB5   /* Toggle radios on/off */
+
 /* Keys for special action keys (hot keys) */
 /* Virtual terminals on some operating systems */
 #define XF86XK_Switch_VT_1	0x1008FE01
-- 
2.12.2



More information about the xorg-devel mailing list