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
Fix self releasing keys and add fix for MacOS Command key goofiness #10
This PR aims to fix the bug with self releasing keys found by @colinsullivan (much appreciated). It incorporates his test case and some ideas from is PR #9.
This PR also fixes an issue with MacOS where the command key does not fire a keyup event after another key is pressed. I fixed this issue by emitting an artificial keyup event when any other key is released, and intercept any real command keyup events (should Apple fix this issue, or no other keys are pressed).
This PR aims to fix the bug with self releasing keys found by @colinsullivan (much appreciated). It incorporates his test case and some ideas from is PR #9.
This PR also fixes an issue with MacOS where the command key does not fire a keyup event after another key is pressed. I fixed this issue by emitting an artificial keyup event when any other key is released, and intercept any real command keyup events (should Apple fix this issue, or no other keys are pressed).