Support for up/right/down/left. close #267
This commit is contained in:
parent
8fcb23d7b2
commit
ff448d61cf
@ -876,6 +876,14 @@
|
||||
}
|
||||
} else if ((48 <= kc && kc <= 57)) {
|
||||
key = String.fromCharCode(kc);
|
||||
} else if (kc === 37) {
|
||||
key = 'Left';
|
||||
} else if (kc === 38) {
|
||||
key = 'Up';
|
||||
} else if (kc === 39) {
|
||||
key = 'Right';
|
||||
} else if (kc === 40) {
|
||||
key = 'Down';
|
||||
} else if (kc === 27) {
|
||||
key = 'Esc';
|
||||
} else if (kc === 8) {
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
master
|
||||
- mayhem
|
||||
quote inlining default styling (by xat)
|
||||
add up/down/right/left keybinding support
|
||||
|
||||
2.19.2
|
||||
- mayhem
|
||||
|
||||
@ -626,6 +626,14 @@ keybinds =
|
||||
key = key.toLowerCase()
|
||||
else if 48 <= kc <= 57 #0-9
|
||||
key = String.fromCharCode kc
|
||||
else if kc is 37
|
||||
key = 'Left'
|
||||
else if kc is 38
|
||||
key = 'Up'
|
||||
else if kc is 39
|
||||
key = 'Right'
|
||||
else if kc is 40
|
||||
key = 'Down'
|
||||
else if kc is 27
|
||||
key = 'Esc'
|
||||
else if kc is 8
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user