Use explicit boolean comparison

This commit is contained in:
Daniel Imms
2016-07-21 10:32:20 -07:00
parent 9cb5b005bb
commit 577a3d81e5
+1 -1
View File
@@ -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;