make Chord not a pointer receiver

This commit is contained in:
John Gebbie 2023-09-12 12:53:25 +01:00
parent d5a6aeef74
commit ec566eb9ff

View file

@ -111,7 +111,7 @@ func parseChord(keymap *xkb.Keymap, chord string) (Chord, error) {
return c, nil
}
func (c *Chord) KeyDown(kb uinput.Keyboard) {
func (c Chord) KeyDown(kb uinput.Keyboard) {
if c.Super {
log(kb.KeyDown(super))
}
@ -130,7 +130,7 @@ func (c *Chord) KeyDown(kb uinput.Keyboard) {
log(kb.KeyDown(c.Key))
}
func (c *Chord) KeyUp(kb uinput.Keyboard) {
func (c Chord) KeyUp(kb uinput.Keyboard) {
if c.Super {
log(kb.KeyUp(super))
}