prefer keys without modifiers
This commit is contained in:
parent
f0e9e7102d
commit
29f30ad52b
1 changed files with 7 additions and 2 deletions
9
keys.go
9
keys.go
|
@ -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 {
|
||||||
LinuxKeys[name] = chord
|
if _, ok := LinuxKeys[name]; !ok {
|
||||||
|
LinuxKeys[name] = chord
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
XKeys[xkb.KeysymGetName(sym)] = chord
|
name := xkb.KeysymGetName(sym)
|
||||||
|
if _, ok := XKeys[name]; !ok {
|
||||||
|
XKeys[name] = chord
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue