Open jackpoi opened 1 year ago
hook.Register(hook.KeyHold, []string{"f10"}, func(e hook.Event) { fmt.Println(e) }) s := hook.Start() <-hook.Process(s)
hook.Register() cannot bind f1~f12, it only works when using KeyHold, using KeyUp and KeyDown have no effect, and neither do combination keys like []string{"alt", "f10"}
hook.Register()
f1~f12
KeyHold
KeyUp
KeyDown
[]string{"alt", "f10"}
I have the same issue.
I am also the same problem how to fix
Already solved code here https://github.com/duolabmeng6/go-qoq/blob/master/mymodel/%E9%94%AE%E4%BB%A3%E7%A0%81.go
Description
hook.Register()
cannot bindf1~f12
, it only works when usingKeyHold
, usingKeyUp
andKeyDown
have no effect, and neither do combination keys like[]string{"alt", "f10"}