mirror of
https://github.com/robotn/gohook.git
synced 2025-01-18 13:46:41 +08:00
Fixed all pressed return bug
This commit is contained in:
parent
f76284ab75
commit
d6d3b4663e
4
hook.go
4
hook.go
@ -102,7 +102,9 @@ var (
|
|||||||
func allPressed(pressed map[uint16]bool, keys ...uint16) bool {
|
func allPressed(pressed map[uint16]bool, keys ...uint16) bool {
|
||||||
for _, i := range keys {
|
for _, i := range keys {
|
||||||
// fmt.Println(i)
|
// fmt.Println(i)
|
||||||
return !pressed[i]
|
if !pressed[i] {
|
||||||
|
return false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true
|
return true
|
||||||
|
Loading…
Reference in New Issue
Block a user