Closed gossi closed 6 years ago
I feel like this would increase the complexity greatly. Any reason to not just register multiple callbacks with the correct key combinations?
What I'm after is more like that fact, you currently have to deal with some confusing things:
Control
vs ctrlKey
- why two different keywords for the same button?executionKey
and modifierKeys
- where do I need to put which keyword mentioned in (1) if I just want to trigger on a modifier key?executionKey
only allows for one key to trigger a macro, which is limitingThese are the pain points of the current API as I see them.
There are separate issues here. I'm going to split them up and close this issue.
The current API is a bit confusing when it comes to modifiers that are optional or required.
I just post some examples and what I would expect:
fires on
ctrl + a
as well as onalt + ctrl + a
fires on
a
as well as onctrl + a
andalt + a
. Question is onctrl + alt + a
yes or no?Derieved rules:
keys
are required, when all of them are pressed the callback will firemodifierKeys
are optional and the callback will fire, when the required keys are pressed plus one/or all optional keysMaybe not just limiting the optional keys to modifiers? E.g.
After all would open up the API to be less restricting or limiting and will leave the choice and freedom to the developer.