type conversion needed in addMouse

This commit is contained in:
Prashant Gupta 2019-03-14 16:38:10 -07:00
parent e843303475
commit e4edb94ff8

View File

@ -1302,7 +1302,7 @@ func AddMouse(btn string, x ...int16) bool {
ct = true ct = true
} }
if ct && e.Kind == hook.MouseDown && e.Button == ukey { if ct && e.Kind == hook.MouseDown && int(e.Button) == ukey {
hook.End() hook.End()
break break
} }