Setting ordinal for control code escapes
This commit is contained in:
1 parent
580af045d6
commit
d4b648fa43
3 files changed
+3
-3
No files matched your search
@@ -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)];
|
||||
|
||||
Reference in new issue
Block a user