remapping caps lock

52 views
Skip to first unread message

Luigi Semenzato

unread,
May 7, 2012, 8:01:31 PM5/7/12
to Chromium OS dev
"showkey"  shows that the chromium os search key (where caps lock used to be) sends code 125, Left Meta (strange choice), instead of the caps lock key code (58).  Does anybody know where we set that?

Thanks!

Emmanuel Saint-loubert

unread,
May 7, 2012, 8:05:09 PM5/7/12
to Luigi Semenzato, Chromium OS dev

Yes it is in the accelerators table: chrome/src/ash/accelerators/accelerator_table.cc

On Mon, May 7, 2012 at 5:01 PM, Luigi Semenzato <seme...@chromium.org> wrote:
"showkey"  shows that the chromium os search key (where caps lock used to be) sends code 125, Left Meta (strange choice), instead of the caps lock key code (58).  Does anybody know where we set that?

Thanks!

--
Chromium OS Developers mailing list: chromiu...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-os-dev?hl=en

Luigi Semenzato

unread,
May 7, 2012, 8:17:36 PM5/7/12
to Emmanuel Saint-loubert, Chromium OS dev
Thanks.  I am slightly suspecting that that mapping is meant to be local to Chrome.  The remapping I see is global, and affects every program (among which the factory keyboard test, which is currently failing).

Mark Hayter

unread,
May 7, 2012, 8:39:45 PM5/7/12
to Luigi Semenzato, Emmanuel Saint-loubert, Chromium OS dev

This is part of the chrome keyboard spec. The search key is mapped to the keycode that (officially) is called the "Left GUI key", or OSpecifically "left Windows key" or "left Apple key" or "Sun Left Meta". So if you use an external keyboard with a chrome device the Caps Lock key still does Caps Lock and the left Windows key does Search. (Unless of course you have mapped them to Ctrl...)

Mark

Micah Catlin

unread,
May 7, 2012, 11:30:19 PM5/7/12
to Mark Hayter, Luigi Semenzato, Emmanuel Saint-loubert, Chromium OS dev
Also, the new factory tests can use the Chrome browser to present their UI, so it's reasonable to find the same code being effective there.
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages