From 8754f8d895bfd889fa7c5cfee6a4aad049ebacce Mon Sep 17 00:00:00 2001 From: Paris Date: Sun, 5 Jun 2016 06:58:09 +0300 Subject: [PATCH] Fix focus and blur events --- src/xterm.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xterm.js b/src/xterm.js index fc8fd382..ebed287b 100644 --- a/src/xterm.js +++ b/src/xterm.js @@ -401,6 +401,7 @@ this.showCursor(); this.element.focus(); + this.emit('focus', {terminal: this}); }; Terminal.prototype.blur = function() { @@ -416,6 +417,7 @@ this.send('\x1b[O'); } Terminal.focus = null; + this.emit('blur', {terminal: this}); }; /**