mirror of
https://github.com/go-vgo/robotgo
synced 2026-05-23 17:59:12 +00:00
Fixed #213 AddEvents() can't listen correctly multiple times
This commit is contained in:
parent
0545aff0f2
commit
57db5a7202
1 changed files with 4 additions and 2 deletions
|
|
@ -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 a new issue