prefer keys without modifiers

This commit is contained in:
John Gebbie 2023-09-12 12:27:27 +01:00
parent f0e9e7102d
commit 29f30ad52b

View file

@ -629,10 +629,15 @@ func initKeys(keymap *xkb.Keymap) {
chord := newChord(keymap, keymap.KeyGetMod(code, 0, level), code) chord := newChord(keymap, keymap.KeyGetMod(code, 0, level), code)
for name, s := range linuxXSyms { for name, s := range linuxXSyms {
if s == sym { if s == sym {
if _, ok := LinuxKeys[name]; !ok {
LinuxKeys[name] = chord LinuxKeys[name] = chord
} }
} }
XKeys[xkb.KeysymGetName(sym)] = chord }
name := xkb.KeysymGetName(sym)
if _, ok := XKeys[name]; !ok {
XKeys[name] = chord
}
} }
} }
} }