mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-01 06:33:56 +00:00
Fixed #213 AddEvents() can't listen correctly multiple times
This commit is contained in:
parent
0545aff0f2
commit
57db5a7202
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user