RobertWHurst / Keystrokes

Keystrokes as an easy to use library for binding functions to keys and key combos. It can be used with any TypeScript or JavaScript project, even in non-browser environments.
MIT License
158 stars 6 forks source link

Move to synchronous execution of combos #20

Closed RobertWHurst closed 1 year ago

RobertWHurst commented 1 year ago

In order to fix #19 as well as reduce the potential complexity of binders. After this change it will be possible to interact with the originalEvent within the same tick as the event emission.

This PR makes the execution of combos synchronous, and no longer batches updates. This will have a small performance impact, but after testing that seems to be a safe change for even complex binding setups.