diff --git a/src/xterm.js b/src/xterm.js index 764f6abc..233b5491 100644 --- a/src/xterm.js +++ b/src/xterm.js @@ -2427,14 +2427,14 @@ Terminal.prototype.keyDown = function(ev) { if (result.scrollDisp) { this.scrollDisp(result.scrollDisp); - return this.cancel(ev); + return this.cancel(ev, true); } if (isThirdLevelShift(this, ev)) { return true; } - if (result.cancel ) { + if (result.cancel) { // The event is canceled at the end already, is this necessary? this.cancel(ev, true); }