Bug 90684 - Add model layout for new chromebooks
Summary: Add model layout for new chromebooks
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: 2015-05-27 19:17 UTC by Benjamin Tissoires
Modified: 2015-09-15 14:38 UTC (History)
3 users (show)

See Also:
i915 platform:
i915 features:


Attachments
0001-Add-support-for-chromebooks-layout.patch (2.54 KB, text/plain)
2015-05-27 19:17 UTC, Benjamin Tissoires
Details
0001-Add-support-for-chromebooks-layout.patch - v2 (2.55 KB, patch)
2015-05-29 21:12 UTC, Benjamin Tissoires
Details | Splinter Review

Description Benjamin Tissoires 2015-05-27 19:17:24 UTC
Created attachment 116091 [details]
0001-Add-support-for-chromebooks-layout.patch

The recent (the first Pixel has it actually) chromebook laptops present a non generic keyboard layout. They are lacking a few key (like Delete, page Up, page down, etc...), and present a different meaning for the regular F01-F10 keys (see http://en.wikipedia.org/wiki/Chromebook_Pixel#/media/File:Chromebook_Pixel_%28WiFi%29_open.JPG).

The attached patch allows to have a chromebook functional model for the us layout. I used the right alt as the modifier 3 to be able to be transparent for applications, so it does not work currently with other layouts with fancy keys (like fr or de).

I am open to any suggestions regarding how to proper implement the layout.

For the record, I made some screenshots of the shortcuts proposed by ChromeOS, and I can understand why they went away from XKB in the recent versions:
https://drive.google.com/open?id=0B4-hpjeETXEWajV0YjE3b19xdUU&authuser=0
Comment 1 Benjamin Tissoires 2015-05-29 21:12:43 UTC
Created attachment 116159 [details] [review]
0001-Add-support-for-chromebooks-layout.patch - v2

Of course, changing the patch before sending made things worse:
the F5 keys can not be remapped to Super_L or the original Super_L (on the Caps Lock key) does not work properly.
Comment 2 Sergey V. Udaltsov 2015-09-15 14:38:26 UTC
Thank you, committed.

But I think it would be more appropriate to fix it at lower level...


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.