Summary: | inet(evdev) blindly overrides some of the keys: <MUHE>, <HENK>, <HKTG> and many others | ||
---|---|---|---|
Product: | xkeyboard-config | Reporter: | Alex-Daniel Jakimenko <alex.jakimenko+cairo> |
Component: | General | Assignee: | xkb |
Status: | RESOLVED MOVED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | alex.jakimenko+cairo, bensberg |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Alex-Daniel Jakimenko
2015-06-20 23:12:27 UTC
And all of sudden I figured it out myself. Look: $ setxkbmap ef -print xkb_keymap { xkb_keycodes { include "evdev+aliases(qwerty)" }; xkb_types { include "complete" }; xkb_compat { include "complete+ledcaps(group_lock)" }; xkb_symbols { include "pc+ef+inet(evdev)" }; xkb_geometry { include "thinkpad(intl)" }; }; The most important part is this: "pc+ef+inet(evdev)" So I guess it loads up pc, then ef (my layout), then inet(evdev). No matter how hard I try to set something in ef it will be overriden from inet(evdev). The only way to solve it is to comment out these lines in inet (under evdev section, of course): key <HKTG> { [ Hiragana_Katakana ] }; key <HENK> { [ Henkan ] }; key <MUHE> { [ Muhenkan ] }; It works! Hooray! Now, this is wrong. It should be possible to modify any key from the layouts, I don't think there is any reason to hardcode some of the keys by overriding them. So the issue is still there, it is just a bit different from what I thought initially. I'll change the title of this report. How about overriding inet after it has been read? So, instead of having "pc+ef+inet(evdev)" you would have "pc+ef+inet(evdev)+special(lettering)", where the symbols/special file contains this: partial xkb_symbols "lettering" { key <MUHE> { [ a, b ] }; key <HENK> { [ c, d ] }; key <HKTG> { [ e, f ] }; }; Sure, your nice keyboard layout will not be in a single file any more, but at least you don't have to change system files (that may get overwritten by an update). For that, you can even introduce XKB option and add it to the rules. -- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config/issues/50. |
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.