support altgr+
This commit is contained in:
parent
ec566eb9ff
commit
a0049f668b
2 changed files with 3 additions and 1 deletions
|
@ -67,7 +67,7 @@ Currently the *type* action has only heuristic support for dead keys.
|
|||
Press and/or release each _CHORD_. A _CHORD_ is a key or a key with
|
||||
modifiers, such as *a*, *shift+a* or *ctrl+shift+a*.
|
||||
|
||||
The supported modifiers are *super*, *ctrl*, *alt* and *shift*.
|
||||
The supported modifiers are *super*, *altgr*, *ctrl*, *alt* and *shift*.
|
||||
|
||||
Keys can be specified by Linux names, XKB names prefixed with
|
||||
*x:*, or Linux keycodes prefixed with *k:*. The Linux names are
|
||||
|
|
|
@ -97,6 +97,8 @@ func parseChord(keymap *xkb.Keymap, chord string) (Chord, error) {
|
|||
switch strings.ToLower(keys[i]) {
|
||||
case "super":
|
||||
c.Super = true
|
||||
case "altgr":
|
||||
c.AltGr = true
|
||||
case "ctrl", "control":
|
||||
c.Ctrl = true
|
||||
case "alt":
|
||||
|
|
Loading…
Reference in a new issue