Fix focus and blur events

This commit is contained in:
Paris
2016-06-05 03:59:52 +00:00
parent c02cc84498
commit 8754f8d895
+2
View File
@@ -401,6 +401,7 @@
this.showCursor(); this.showCursor();
this.element.focus(); this.element.focus();
this.emit('focus', {terminal: this});
}; };
Terminal.prototype.blur = function() { Terminal.prototype.blur = function() {
@@ -416,6 +417,7 @@
this.send('\x1b[O'); this.send('\x1b[O');
} }
Terminal.focus = null; Terminal.focus = null;
this.emit('blur', {terminal: this});
}; };
/** /**