]> git.proxmox.com Git - mirror_xterm.js.git/commitdiff
Merge changes from #828
authormofux <t.zilz@mofux.org>
Wed, 2 Aug 2017 15:42:43 +0000 (17:42 +0200)
committermofux <t.zilz@mofux.org>
Wed, 2 Aug 2017 15:42:43 +0000 (17:42 +0200)
1  2 
src/xterm.js

diff --cc src/xterm.js
index 1bb44a9a3e214bf1ba78d50b9ed04f10c129eb05,d4cb00158c776e2933038d27b187fd041752e7cb..5aa069e796c688b291265b60ae1d1920291a772c
@@@ -1026,8 -1016,8 +1017,11 @@@ Terminal.prototype.bindMouse = function
    }
  
    on(el, 'mousedown', function(ev) {
-     // prevent the focus on the textarea from getting lost
 -    // ensure focus
++
++    // Prevent the focus on the textarea from getting lost
++    // and make sure we get focused on mousedown
 +    ev.preventDefault();
+     self.focus();
  
      if (!self.mouseEvents) return;