From 577a3d81e5384392e4b90e4b7b8c57040333b502 Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Thu, 21 Jul 2016 10:32:20 -0700 Subject: [PATCH] Use explicit boolean comparison --- src/xterm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;