make Chord not a pointer receiver
This commit is contained in:
parent
d5a6aeef74
commit
ec566eb9ff
1 changed files with 2 additions and 2 deletions
|
@ -111,7 +111,7 @@ func parseChord(keymap *xkb.Keymap, chord string) (Chord, error) {
|
||||||
return c, nil
|
return c, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Chord) KeyDown(kb uinput.Keyboard) {
|
func (c Chord) KeyDown(kb uinput.Keyboard) {
|
||||||
if c.Super {
|
if c.Super {
|
||||||
log(kb.KeyDown(super))
|
log(kb.KeyDown(super))
|
||||||
}
|
}
|
||||||
|
@ -130,7 +130,7 @@ func (c *Chord) KeyDown(kb uinput.Keyboard) {
|
||||||
log(kb.KeyDown(c.Key))
|
log(kb.KeyDown(c.Key))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Chord) KeyUp(kb uinput.Keyboard) {
|
func (c Chord) KeyUp(kb uinput.Keyboard) {
|
||||||
if c.Super {
|
if c.Super {
|
||||||
log(kb.KeyUp(super))
|
log(kb.KeyUp(super))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue