Setting ordinal for control code escapes

This commit is contained in:
Jeff Avallone
2014-12-22 15:11:20 -05:00
parent 580af045d6
commit d4b648fa43
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ export default {
}
},
c() {
return [`ctrl-${this.arg}`, -1];
return [`ctrl-${this.arg.toUpperCase()}`, this.arg.toUpperCase().charCodeAt(0) - 64];
},
x() {
return [`0x${this.arg.toUpperCase()}`, parseInt(this.arg, 16)];