diff --git a/src/xterm.js b/src/xterm.js index c0308b40..16502e20 100644 --- a/src/xterm.js +++ b/src/xterm.js @@ -2548,7 +2548,7 @@ * @param {KeyboardEvent} ev The keydown event to be handled. */ Terminal.prototype.keyDown = function(ev) { - if (this.customKeydownHandler && !this.customKeydownHandler(ev)) { + if (this.customKeydownHandler && this.customKeydownHandler(ev) === false) { return false; } var self = this;