From 18d31a0d08823fca9154d2dbd4c3136ddc6eb6a8 Mon Sep 17 00:00:00 2001 From: Simon Howe Date: Thu, 14 Jan 2016 17:30:24 +0100 Subject: [PATCH] Send xterm equivilant codes for ctrl-arrow keys Docker sets $TERM=xterm. --- client/app/scripts/vendor/term.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/app/scripts/vendor/term.js b/client/app/scripts/vendor/term.js index 98636e38ef..a6aba78296 100644 --- a/client/app/scripts/vendor/term.js +++ b/client/app/scripts/vendor/term.js @@ -2623,7 +2623,7 @@ Terminal.prototype.keyDown = function(ev) { break; } if (ev.ctrlKey) { - key = '\x1b[5D'; + key = '\x1b[1;5D'; break; } key = '\x1b[D'; @@ -2635,7 +2635,7 @@ Terminal.prototype.keyDown = function(ev) { break; } if (ev.ctrlKey) { - key = '\x1b[5C'; + key = '\x1b[1;5C'; break; } key = '\x1b[C';