You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 21, 2021. It is now read-only.
Beautiful work! I think this library would be more complete if it also handled hotkeys; the API could intake a Keys flag enum value for the key combination, and internally work out the applicable +^% modifier string... or perhaps intake the hotkey string as an overload.
It also needs a way to identify hotkeys, without forcing a type on the client code - object would work, but a generic type argument would be even better. Something like this:
var key = Keys.Ctrl + Keys.Shift + Keys.R;
// generic type parameter is inferred for Register<T>
HotkeyWatcher.Register(MyHotkeyEnum.SomeCoolCommand, key);
HotkeyWatcher.Start();
When a hotkey message is captured, an event is raised and the corresponding "key" that the hotkey was registered with is sent back to the client code, who can then decide what to do.