You are not logged in.

#1 2014-07-03 10:07:04

ysetdng
Member
Registered: 2014-05-02
Posts: 42

[SOLVED] Identifier of Meta key in xkb/symbols

Hi!  I used to swap CapsLock with Esc for better vim usability by just adding the following lines to xkb/symbols at the section corresponding to my layout:

key <CAPS> { [    Escape,     Escape,     Escape,     Escape ] };
key <ESC>  { [  CapsLock,   CapsLock,   CapsLock,   CapsLock ] };

(Maybe it was Escape in lower case but basically that just worked.)

Now I'm on a chromebook with the Meta key in place of CapsLock and I can't find its identifier.  I tried <META> and <MOD4> with no success.  I don't think it's something chromebook specific as other applications correctly recognize the Meta key.

Thanks for your help!

Last edited by ysetdng (2014-07-03 12:45:50)

Offline

#2 2014-07-03 10:56:31

ysetdng
Member
Registered: 2014-05-02
Posts: 42

Re: [SOLVED] Identifier of Meta key in xkb/symbols

OK got it!  The key identifier is <LWIN> and the function (to which I want to map <ESC>) is Meta_L.

Last edited by ysetdng (2014-07-03 11:13:00)

Offline

Board footer

Powered by FluxBB