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
The test instance of keystrokes does not implement the interface of browser binding sourced events #31
Describe the bug
If you use the keystrokes test instance, it will not implement the same interface for events that the browser bindings, which are used by Keystrokes by default. The typescript types also do not reflect this discrepancy.
To Reproduce
Write a unit test using a test instance of keystrokes, and attempt to use a browser binding sourced property on the event.
Expected behavior
The property should be the same as if used with the browser bindings (unless overridden).
Originally reported by @noahbrom in #19
Describe the bug If you use the keystrokes test instance, it will not implement the same interface for events that the browser bindings, which are used by Keystrokes by default. The typescript types also do not reflect this discrepancy.
To Reproduce Write a unit test using a test instance of keystrokes, and attempt to use a browser binding sourced property on the event.
Expected behavior The property should be the same as if used with the browser bindings (unless overridden).