mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
changed escape sequence for alt-arrow to work on bash on os x
This commit is contained in:
+2
-2
@@ -2501,7 +2501,7 @@ Terminal.prototype.evaluateKeyEscapeSequence = function(ev) {
|
|||||||
// HACK: Make Alt + left-arrow behave like Ctrl + left-arrow: move one word backwards
|
// HACK: Make Alt + left-arrow behave like Ctrl + left-arrow: move one word backwards
|
||||||
// http://unix.stackexchange.com/a/108106
|
// http://unix.stackexchange.com/a/108106
|
||||||
if (result.key == '\x1b[1;3D') {
|
if (result.key == '\x1b[1;3D') {
|
||||||
result.key = '\x1b[1;5D';
|
result.key = '\x1bb';
|
||||||
}
|
}
|
||||||
} else if (this.applicationCursor) {
|
} else if (this.applicationCursor) {
|
||||||
result.key = '\x1bOD';
|
result.key = '\x1bOD';
|
||||||
@@ -2516,7 +2516,7 @@ Terminal.prototype.evaluateKeyEscapeSequence = function(ev) {
|
|||||||
// HACK: Make Alt + right-arrow behave like Ctrl + right-arrow: move one word forward
|
// HACK: Make Alt + right-arrow behave like Ctrl + right-arrow: move one word forward
|
||||||
// http://unix.stackexchange.com/a/108106
|
// http://unix.stackexchange.com/a/108106
|
||||||
if (result.key == '\x1b[1;3C') {
|
if (result.key == '\x1b[1;3C') {
|
||||||
result.key = '\x1b[1;5C';
|
result.key = '\x1bf';
|
||||||
}
|
}
|
||||||
} else if (this.applicationCursor) {
|
} else if (this.applicationCursor) {
|
||||||
result.key = '\x1bOC';
|
result.key = '\x1bOC';
|
||||||
|
|||||||
Reference in New Issue
Block a user