From d6d3b4663e019912ba61de017db77eecd43313af Mon Sep 17 00:00:00 2001 From: vcaesar Date: Tue, 6 Oct 2020 11:24:07 -0400 Subject: [PATCH] Fixed all pressed return bug --- hook.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hook.go b/hook.go index 15b4563..189f41c 100644 --- a/hook.go +++ b/hook.go @@ -102,7 +102,9 @@ var ( func allPressed(pressed map[uint16]bool, keys ...uint16) bool { for _, i := range keys { // fmt.Println(i) - return !pressed[i] + if !pressed[i] { + return false + } } return true