-
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Keyboard events now use the
code
property
**This is a breaking change** Fixes #766 by adding a new `KeyCode` enum, which is populated with the values from the `code` property of the KeyboardEvent. Additionally, the `Key` class also has a new `location` property, which maps to the `location` property of the KeyboardEvent. The KeyboardEvent itself now also supports some new additional properties: * `isRepeat` - a boolean indicating if the key is being held down * `isCtrlKey` - a boolean indicating if the Ctrl key is pressed * `isMetaKey` - a boolean indicating if the Meta key is pressed * `isAltKey` - a boolean indicating if the Alt key is pressed * `isShiftKey` - a boolean indicating if the Shift key is pressed
- Loading branch information
Showing
7 changed files
with
544 additions
and
238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.