Support for up/right/down/left. close #267

This commit is contained in:
Nicolas Stepien 2011-09-05 21:25:22 +02:00
parent 8fcb23d7b2
commit ff448d61cf
3 changed files with 17 additions and 0 deletions

View File

@ -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) {

View File

@ -1,6 +1,7 @@
master
- mayhem
quote inlining default styling (by xat)
add up/down/right/left keybinding support
2.19.2
- mayhem

View File

@ -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