From 0fb8b664a9a49b299ac3f7851df8cd9b9121e445 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Mon, 21 Jan 2019 20:27:36 +0100 Subject: [PATCH xkeyboard-config] Map evdev keycode KEY_ROTATE_LOCK_TOGGLE to XF86RotationLockToggle Add XF86RotationLockToggle, to be used as mapping for evdev's KEY_ROTATE_LOCK_TOGGLE. I've a Point of View P1006W-232 Windows tablet which actually has a rotate-lock toggle-button. The latest kernel correctly generates KEY_ROTATE_LOCK_TOGGLE events for this. So now I'm hooking up support for it through all the higher layers. The patch for adding the RotationLockToggle keysym to xproto is here: https://patchwork.freedesktop.org/patch/279365/ Signed-off-by: Hans de Goede --- keycodes/evdev | 1 + symbols/inet | 1 + 2 files changed, 2 insertions(+) diff --git a/keycodes/evdev b/keycodes/evdev index dd2b865..5dcc9f6 100644 --- a/keycodes/evdev +++ b/keycodes/evdev @@ -286,6 +286,7 @@ default xkb_keycodes "evdev" { = 372; // #define KEY_FAVORITES 364 = 382; // #define KEY_KEYBOARD 374 + = 569; // #define KEY_ROTATE_LOCK_TOGGLE 561 // Fake keycodes for virtual keys = 92; diff --git a/symbols/inet b/symbols/inet index b97ccf2..6c9dd87 100644 --- a/symbols/inet +++ b/symbols/inet @@ -220,6 +220,7 @@ xkb_symbols "evdev" { key { [ XF86Favorites ] }; key { [ XF86Keyboard ] }; + key { [ XF86RotationLockToggle ] }; key { [ XF86Tools ] }; key { [ XF86Launch5 ] }; -- 2.21.0