-
Notifications
You must be signed in to change notification settings - Fork 220
Execute action on key down too? #107
Comments
Sorry, not at the moment. (See |
Thanks for the info @zoul! I'm writing an application that is momentarily activated while a hotkey is held, so active when pressed, inactive when released. |
Ah, that makes good sense. In that case I suggest writing your own |
Thanks a lot for your suggestion @zoul! I'm pretty new to macOS/Cocoa development though and I'm not entirely sure if I understand you correctly. Should I write a new MASShortcutMonitor (not subclassing the existing one) and plug it into MASShortcutBinder using its setShortcutMonitor method? In that case I’d think it would be easier for me to fork the repo and modify the existing MASShortcutMonitor to allow for the functionality. Or am I wrong thinking that or wrong in my understanding of your suggestion altogether? |
You got my suggestion just right! The advantage in comparison to forking the repo is that you could keep using vanilla MASShortcut (except the monitor), getting new bug fixes, features etc. (But that’s just the first thing that came to my mind when thinking about your problem, so there might be an obvious downside somewhere.) I think we could even make |
Cool! I'll give it a shot once I have time one of the coming days. |
Is there a way to make the make the action execute on both key down and key up?
The text was updated successfully, but these errors were encountered: