Skip to content

Commit

Permalink
Send xterm equivilant codes for ctrl-arrow keys
Browse files Browse the repository at this point in the history
Docker sets $TERM=xterm.
  • Loading branch information
foot committed Jan 14, 2016
1 parent 43b430f commit 18d31a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/app/scripts/vendor/term.js
Original file line number Diff line number Diff line change
Expand Up @@ -2623,7 +2623,7 @@ Terminal.prototype.keyDown = function(ev) {
break;
}
if (ev.ctrlKey) {
key = '\x1b[5D';
key = '\x1b[1;5D';
break;
}
key = '\x1b[D';
Expand All @@ -2635,7 +2635,7 @@ Terminal.prototype.keyDown = function(ev) {
break;
}
if (ev.ctrlKey) {
key = '\x1b[5C';
key = '\x1b[1;5C';
break;
}
key = '\x1b[C';
Expand Down

0 comments on commit 18d31a0

Please sign in to comment.