Closed ficapy closed 3 years ago
Indeed, this is an implementation issue. When we start the call Listen
, the handling must register a background application, making the current implementation not support registering multiple hotkeys. I will investigate this, and see if there are any workaround to realize it.
Moreover, this is also a platform-specific issue. I think it only occurs in macOS.
Sorry for the confusion. I think there is a flaw in your example. The current implementation already supports registering multiple hotkeys. See here is a complete example for registering multiple hotkeys:
https://github.com/golang-design/hotkey/blob/main/hotkey_darwin_test.go
Nothing needs to do here. Close.
For example, listening to Ctrl+1 and Ctrl+2 at the same time. my test failed on OSX, is this not allowed, or is it used incorrectly?