fails at multiple keycodes per keysym
@daniels
Submitted by Daniel Stone Assigned to Xorg Project Team
Description
just a reminder for me:
15:52 `< zrusin>` daniels: you will have to save me dude. is there an easy way of
making the windows key on a keyboard act as a control key, while keeping control
keys as control keys as well
15:54 `< daniels>` zrusin: edit /etc/X11/xkb/symbols/pc (possibly
/usr/share/X11/xkb/symbols/pc) and change key `<LWIN>` { [ Super_L ] } to
Control_L, and change Super_R to Control_R
12:20 `< zrusin>` man, wtf is emacs doing though. xev shows it nicely as control_l
but emacs just ignores it...
12:22 `< daniels>` zrusin: does xev show the state field being or'd with 0x4?
12:23 `< zrusin>` daniels: for real ctrl on keyrelease, lwin is 0x0 on release
12:25 `< daniels>` zrusin: gr
12:25 `< daniels>` zrusin: look in that same file again for 'modifier_map Control'
12:25 `< daniels>` zrusin: do you have LCTL and RCTL, or Control_L and Control_R?
12:26 `< zrusin>` daniels: i see Control_L, Control_R
12:27 `< daniels>` zrusin: fuck
12:27 `< zrusin>` daniels: that doesn't sound good
12:28 `< daniels>` zrusin: it probably stops searching at the first one
12:28 `< daniels>` zrusin: massive hack, but try changing it to LCTL, RCTL, LWIN, RWIN
12:33 `< zrusin>` daniels: didn't help. state is still 0x0 for lwin on release.
everything else is the same (besides time and keycode of course), eveb
xkeysymtokeycode for lwin correctly returns keycode for control_l
12:34 `< daniels>` zrusin: you are running setxkbmap -print | xkbcomp - :0 after
every iteration, right?
12:34 `< daniels>` or just setxkbmap -layout us, or anything to reload the layout
12:35 `< daniels>` or restarting your server
12:35 `< zrusin>` i'm restarting the whole server
12:36 `< daniels>` can you post the output of xkbcomp :0 -, somewhere?
12:38 `< zrusin>` daniels: sure. i put it here:
http://chaos.troll.no/~zrusin/zack.keys
12:40 `< daniels>` zrusin: try this:
12:40 `< daniels>` modifier_map Control { `<LCTL>` };
12:40 `< daniels>` modifier_map Control { `<LWIN>` };
12:40 `< daniels>` and same for R
12:41 `< daniels>` or maybe modifier_map { `<LCTL>`, `<LWIN>`, `<RCTL>`, `<RWIN>` };
12:41 `< daniels>` (the difference being the angle brackets)
12:44 `< zrusin>` daniels: dude, love ya. the second works
Version: git