mirror of
https://github.com/go-vgo/robotgo.git
synced 2025-06-02 23:23:55 +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 {
|
if e.Kind == hook.KeyUp && e.Keycode == ukey {
|
||||||
k--
|
if k > 0 {
|
||||||
time.Sleep(10 * time.Microsecond)
|
k--
|
||||||
|
}
|
||||||
|
// time.Sleep(10 * time.Microsecond)
|
||||||
ct = false
|
ct = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user