Jump over words with ctrl+left/right

Escape codes used: 5=ctrl, C=right, D=left

Fixes #65
This commit is contained in:
Daniel Imms
2016-06-09 18:01:12 -07:00
parent cf9d2348a1
commit e2aaa8d362
+12 -2
View File
@@ -2337,7 +2337,12 @@
this.cancel(ev, true);
key = '\x1bb' // Jump a word back
break;
} else if (this.applicationCursor) {
}
if (ev.ctrlKey) {
key = '\x1b[5D'; // Jump a word back
break;
}
if (this.applicationCursor) {
key = '\x1bOD'; // SS3 as ^[O for 7-bit
break;
}
@@ -2349,7 +2354,12 @@
this.cancel(ev, true);
key = '\x1bf' // Jump a word forward
break;
} else if (this.applicationCursor) {
}
if (ev.ctrlKey) {
key = '\x1b[5C'; // Jump a word forward
break;
}
if (this.applicationCursor) {
key = '\x1bOC';
break;
}