Bug 101521 - Map KEY_KEYBOARD to XF86Keyboard
Summary: Map KEY_KEYBOARD to XF86Keyboard
Status: RESOLVED FIXED
Alias: None
Product: xkeyboard-config
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: xkb
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-20 15:47 UTC by Christian Kellner
Modified: 2018-05-14 22:17 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Map evdev keycode KEY_KEYBOARD to XF86Keyboard (1.44 KB, patch)
2017-06-20 15:57 UTC, Christian Kellner
Details | Splinter Review
Map evdev keycode KEY_KEYBOARD to XF86Keyboard (1.46 KB, patch)
2018-05-02 08:59 UTC, Benjamin Berg
Details | Splinter Review

Description Christian Kellner 2017-06-20 15:47:40 UTC
KEY_KEYBOARD is currently missing.
Comment 1 Christian Kellner 2017-06-20 15:57:37 UTC
Created attachment 132090 [details] [review]
Map evdev keycode KEY_KEYBOARD to XF86Keyboard

NB: XF86Keyboard is a relatively new keysym and therefore needs
recent protocol headers. Also KEY_KEYBOARD's keysym is > 255
and therefore needs a recent xkbcomp (as the new KEY_FAVORITES).

https://bugs.freedesktop.org/show_bug.cgi?id=101521

Signed-off-by: Christian Kellner <christian@kellner.me>
Comment 2 Bastien Nocera 2017-06-21 17:18:40 UTC
It's customary to say what the key might "do" when pressed, or if it corresponds to a HID key.
Comment 3 Sergey V. Udaltsov 2017-10-04 10:10:06 UTC
(In reply to Bastien Nocera from comment #2)
> It's customary to say what the key might "do" when pressed, or if it
> corresponds to a HID key.

Yes please give some more details. Also, your patch does not work with the current git, could you please amend? Thank you
Comment 4 Christian Kellner 2017-10-09 14:35:11 UTC
I assume the patch doesn't apply because I based it on top of patch for  KEY_FAVORITES, because I had hoped that the former would be committed by the time this gets reviewed. 
Want make a version of this patch against master?

About the "details" part: surprisingly hard for this key. The target XF86XK_Keyboard is also new, and the description was left vague ("User defined keyboard related action") because there is not a clear, unambiguous function associated with it.
On Windows and Lenovo Hardward it will bring up the general keyboard settings dialog, but it was generally agreed upon that this is kinda useless and we (GNOME) will probably use it for something else (switching keyboard layouts or something). Not sure what or if KDE will do something with it.
FWIW, I also think the mapping file is probably not the right place to document behaviour -- and the mapping of KEY_KEYBOARD to XF86XK_Keyboard is kinda straight forward and obvious. I will happily add something though if you think that is usefull. Maybe the same as for XF86XK_Keyboard ("User defined keyboard related action")?
Comment 5 Sergey V. Udaltsov 2018-01-18 21:07:03 UTC
> Want make a version of this patch against master?
Yes please!

> About the "details" part: surprisingly hard for this key. The target
> XF86XK_Keyboard is also new, and the description was left vague ("User
> defined keyboard related action") because there is not a clear, unambiguous
> function associated with it.
I see.. We have to come up with something though. Let's define our standard here:)

> you think that is usefull. Maybe the same as for XF86XK_Keyboard ("User
> defined keyboard related action")?
That sounds fair. Let's do it that way.
Comment 6 Benjamin Berg 2018-04-24 14:02:25 UTC
Hey, what is the status on the mapping to be added?

I was about to modify the default settings in GNOME so that the key will be used to switch the keyboard layout (in addition to "<Super>space"), but than realised that the mapping is not there yet.

Even if it will not work on X11, could the mapping be added so that we can support the key on wayland systems?
Comment 7 Sergey V. Udaltsov 2018-04-26 22:34:03 UTC
sorry your patch does not apply to git. Could you please check and fix?
Comment 8 Benjamin Berg 2018-05-02 08:59:59 UTC
Created attachment 139263 [details] [review]
Map evdev keycode KEY_KEYBOARD to XF86Keyboard

Patch rebased to master. https://bugs.freedesktop.org/show_bug.cgi?id=100709 is required to apply it cleanly.
Comment 9 Sergey V. Udaltsov 2018-05-14 22:17:09 UTC
Thank you, done!


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.