Jump over words with ctrl+left/right
Escape codes used: 5=ctrl, C=right, D=left Fixes #65
This commit is contained in:
+12
-2
@@ -2337,7 +2337,12 @@
|
|||||||
this.cancel(ev, true);
|
this.cancel(ev, true);
|
||||||
key = '\x1bb' // Jump a word back
|
key = '\x1bb' // Jump a word back
|
||||||
break;
|
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
|
key = '\x1bOD'; // SS3 as ^[O for 7-bit
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -2349,7 +2354,12 @@
|
|||||||
this.cancel(ev, true);
|
this.cancel(ev, true);
|
||||||
key = '\x1bf' // Jump a word forward
|
key = '\x1bf' // Jump a word forward
|
||||||
break;
|
break;
|
||||||
} else if (this.applicationCursor) {
|
}
|
||||||
|
if (ev.ctrlKey) {
|
||||||
|
key = '\x1b[5C'; // Jump a word forward
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
if (this.applicationCursor) {
|
||||||
key = '\x1bOC';
|
key = '\x1bOC';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user