by cncdrive » Wed Oct 18, 2017 8:59 pm
Originally when we started developing the UCCNC to be generic we thought about handling these things like the button calls also generic.
A good example for that is the keypress event in C#, that you can cancel the event with e.Cancel and handle it with your own code.
Finally we dropped this idea, because it could cause so much confusion and problems.
Just think about what would happen if more than one plugins try to cancel the event and run it's own function on it, this could create serious conflicts and issues, so we did not make this possible.
What you could do in this particular case, if you want to do your own thing on joghotkeys is to remove the hotkeys from the hotkeys settings, so the UCCNC will then not do anything on button presses.
And then you could write your own handlers in the plugin.
However this could still create issues if the user will have the hotkeys enabled and so the UCCNC will do it's things on the hotkeys and you will do other things in the plugin.