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

Allow binding and unbinding multiple key/keyCombos at once #26

Closed RobertWHurst closed 1 year ago

RobertWHurst commented 1 year ago

This PR introduces the ability to bind more than one key/keyCombo at the same time - bindKey and bindKeyCombo can take an array of keys/combos now. This is also true in regards to unbindKey and unbindKeyCombo as well.

Thanks to @qiongshusheng for the suggestion.