Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

Commit

Permalink
fix(constants): Add more key codes, noissue
Browse files Browse the repository at this point in the history
  • Loading branch information
diondiondion committed Sep 9, 2020
1 parent 69fde77 commit 3c29e30
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/constants/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,23 @@
* These ones have to be matched against `event.keyCode`.
*/
const KEY_CODES = {
ESC: 27,
BACKSPACE: 8,
TAB: 9,
ENTER: 13,
SHIFT: 16,
CONTROL: 17,
ESC: 27,
SPACE: 32,
PAGE_UP: 33,
PAGE_DOWN: 34,
END: 35,
HOME: 36,
ARROW_LEFT: 37,
ARROW_UP: 38,
ARROW_RIGHT: 39,
ARROW_DOWN: 40,
DELETE: 46,
META: 91,
};

export {KEY_CODES};

0 comments on commit 3c29e30

Please sign in to comment.