Skip to content

Commit

Permalink
fix: invalid keybindings Alt and Ctrl (#176)
Browse files Browse the repository at this point in the history
* - Fix invalid keybindings (Alt is 18, Ctrl is 17)
ref. https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode#non-printable_keys_function_keys

* Trigger Build

* update api docs
  • Loading branch information
burnpiro authored Aug 23, 2022
1 parent 17989f3 commit d74d696
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions common/reviews/api/tools.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -2506,9 +2506,9 @@ type JumpToSliceOptions = {
// @public (undocumented)
enum KeyboardBindings {
// (undocumented)
Alt = 17,
Alt = 18,
// (undocumented)
Ctrl = 18,
Ctrl = 17,
// (undocumented)
Shift = 16
}
Expand Down
4 changes: 2 additions & 2 deletions packages/tools/src/enums/ToolBindings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ enum MouseBindings {

enum KeyboardBindings {
Shift = 16,
Ctrl = 18,
Alt = 17,
Ctrl = 17,
Alt = 18,
}

export { MouseBindings, KeyboardBindings };

0 comments on commit d74d696

Please sign in to comment.