Fix focus on mouseup when mousedown was in another element

Fixes #267
This commit is contained in:
Daniel Imms
2016-09-15 13:50:39 -07:00
parent ecfa44b0e8
commit 4e1bbee67e
+1 -1
View File
@@ -623,7 +623,7 @@ Terminal.prototype.open = function(parent) {
// Ensure there is a Terminal.focus.
this.focus();
on(this.element, 'mouseup', function() {
on(this.element, 'click', function() {
var selection = document.getSelection(),
collapsed = selection.isCollapsed,
isRange = typeof collapsed == 'boolean' ? !collapsed : selection.type == 'Range';