mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2025-01-10 14:42:13 -05:00
Merge branch 'develop' into textTool
This commit is contained in:
commit
cbd2a89cd0
1 changed files with 3 additions and 2 deletions
|
@ -145,8 +145,9 @@ class PaintEditor extends React.Component {
|
|||
this.setState({canvas: canvas});
|
||||
this.canvas = canvas;
|
||||
}
|
||||
onMouseDown () {
|
||||
if (document.activeElement instanceof HTMLInputElement) {
|
||||
onMouseDown (event) {
|
||||
if (event.target === paper.view.element &&
|
||||
document.activeElement instanceof HTMLInputElement) {
|
||||
document.activeElement.blur();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue