We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1861fe5 commit bb1cc89Copy full SHA for bb1cc89
events/KeyCodes.ts
@@ -3,21 +3,24 @@
3
export let KeyCodes = {
4
BACKSPACE: 8,
5
6
- RETURN: "13",
7
- ESC: "27",
8
- SPACE: "32",
+ RETURN: 13,
+ ESC: 27,
+ SPACE: 32,
9
10
- LEFT: "37",
11
- UP: "38",
12
- RIGHT: "39",
13
- DOWN: "40",
+ LEFT: 37,
+ UP: 38,
+ RIGHT: 39,
+ DOWN: 40,
14
15
- ZERO: "48",
16
- ONE: "49",
17
- TWO: "50",
+ ZERO: 48,
+ ONE: 49,
+ TWO: 50,
18
19
- b: "66",
20
- F: "70",
21
- k: "75",
22
- m: "77"
+ a: 65,
+ b: 66,
+ F: 70,
+ k: 75,
23
+ m: 77,
24
+
25
+ WIN_or_CMD:91 //to detect cmd on key up use this, on keydown you can use event.metaKey
26
}
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "vanilla-typescript",
- "version": "0.2.8",
+ "version": "0.2.11",
"description": "",
"main": "index.ts",
"scripts": {
0 commit comments