File tree Expand file tree Collapse file tree 2 files changed +18
-15
lines changed Expand file tree Collapse file tree 2 files changed +18
-15
lines changed Original file line number Diff line number Diff line change 3
3
export let KeyCodes = {
4
4
BACKSPACE : 8 ,
5
5
6
- RETURN : "13" ,
7
- ESC : "27" ,
8
- SPACE : "32" ,
6
+ RETURN : 13 ,
7
+ ESC : 27 ,
8
+ SPACE : 32 ,
9
9
10
- LEFT : "37" ,
11
- UP : "38" ,
12
- RIGHT : "39" ,
13
- DOWN : "40" ,
10
+ LEFT : 37 ,
11
+ UP : 38 ,
12
+ RIGHT : 39 ,
13
+ DOWN : 40 ,
14
14
15
- ZERO : "48" ,
16
- ONE : "49" ,
17
- TWO : "50" ,
15
+ ZERO : 48 ,
16
+ ONE : 49 ,
17
+ TWO : 50 ,
18
18
19
- b : "66" ,
20
- F : "70" ,
21
- k : "75" ,
22
- m : "77"
19
+ a : 65 ,
20
+ b : 66 ,
21
+ F : 70 ,
22
+ 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
23
26
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vanilla-typescript" ,
3
- "version" : " 0.2.8 " ,
3
+ "version" : " 0.2.11 " ,
4
4
"description" : " " ,
5
5
"main" : " index.ts" ,
6
6
"scripts" : {
You can’t perform that action at this time.
0 commit comments