add key Kind Fixed #203

This commit is contained in:
vcaesar 2019-03-15 14:04:19 -04:00
parent e71e8e9c3e
commit 19c54fff4f

View File

@ -1275,7 +1275,7 @@ func AddEvents(key string, arr ...string) bool {
ct = true ct = true
} }
if ct && e.Keycode == uint16(keycode[key].(int)) { if ct && e.Kind == hook.KeyUp && e.Keycode == uint16(keycode[key].(int)) {
hook.End() hook.End()
// k = 0 // k = 0
break break