Fixed #213 AddEvents() can't listen correctly multiple times

This commit is contained in:
vcaesar 2019-04-22 14:00:36 -04:00
parent 0545aff0f2
commit 57db5a7202

View File

@ -1327,8 +1327,10 @@ func AddEvents(key string, arr ...string) bool {
}
if e.Kind == hook.KeyUp && e.Keycode == ukey {
k--
time.Sleep(10 * time.Microsecond)
if k > 0 {
k--
}
// time.Sleep(10 * time.Microsecond)
ct = false
}
}