Merge pull request #5259 from Rob--W/handtool-unfocus
Handtool: Remove focus from previous node on click
This commit is contained in:
commit
2158fcc0f1
@ -135,6 +135,11 @@ var GrabToPan = (function GrabToPanClosure() {
|
|||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
this.document.documentElement.classList.add(this.CSS_CLASS_GRABBING);
|
this.document.documentElement.classList.add(this.CSS_CLASS_GRABBING);
|
||||||
|
|
||||||
|
var focusedElement = document.activeElement;
|
||||||
|
if (focusedElement && !focusedElement.contains(event.target)) {
|
||||||
|
focusedElement.blur();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user