diff --git a/client/app/scripts/vendor/term.js b/client/app/scripts/vendor/term.js index 35a90d2d5..98636e38e 100644 --- a/client/app/scripts/vendor/term.js +++ b/client/app/scripts/vendor/term.js @@ -2803,8 +2803,11 @@ Terminal.prototype.keyDown = function(ev) { key = '\x1b' + String.fromCharCode(ev.keyCode + 32); } else if (ev.keyCode === 192) { key = '\x1b`'; - } else if (ev.keyCode >= 48 && ev.keyCode <= 57) { - key = '\x1b' + (ev.keyCode - 48); + // disable bash repeating for now. Supporting UK locale is more + // important. + // + // } else if (ev.keyCode >= 48 && ev.keyCode <= 57) { + // key = '\x1b' + (ev.keyCode - 48); } } break; @@ -2858,7 +2861,8 @@ Terminal.prototype.keyPress = function(ev) { return false; } - if (!key || ev.ctrlKey || ev.altKey || ev.metaKey) return false; + // allow ev.altKey through here, its used like "shift" in some locales. + if (!key || ev.ctrlKey || ev.metaKey) return false; key = String.fromCharCode(key); @@ -5970,4 +5974,4 @@ if (typeof module !== 'undefined') { }).call(function() { return this || (typeof window !== 'undefined' ? window : global); -}()); \ No newline at end of file +}());