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
156 stars 6 forks source link

Fix MacOS Command Key Handling #22

Closed RobertWHurst closed 1 year ago

RobertWHurst commented 1 year ago

This PR fixes how the command key is managed on MacOS. There was an issue where keys pressed at the same time as meta would not fire keyup events. It also changes how event objects are managed so it is possible to easily interact with events to prevent default browser behaviours or call other methods on the event.