mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Merge pull request #15 from sourcelair/issue/14
Jump words back and forward with "Alt + ←" and "Alt + →"
This commit is contained in:
+8
-3
@@ -2200,16 +2200,21 @@
|
||||
break;
|
||||
// left-arrow
|
||||
case 37:
|
||||
if (this.applicationCursor) {
|
||||
if (ev.altKey) {
|
||||
key = '\x1bb' // Jump a word back
|
||||
break;
|
||||
} else if (this.applicationCursor) {
|
||||
key = '\x1bOD'; // SS3 as ^[O for 7-bit
|
||||
//key = '\x8fD'; // SS3 as 0x8f for 8-bit
|
||||
break;
|
||||
}
|
||||
key = '\x1b[D';
|
||||
break;
|
||||
// right-arrow
|
||||
case 39:
|
||||
if (this.applicationCursor) {
|
||||
if (ev.altKey) {
|
||||
key = '\x1bf' // Jump a word forward
|
||||
break;
|
||||
} else if (this.applicationCursor) {
|
||||
key = '\x1bOC';
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user