Fix focus and blur events
This commit is contained in:
@@ -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});
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user