mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2025-01-10 14:42:13 -05:00
Merge branch 'develop' into convertToBitmap
This commit is contained in:
commit
8ffe666478
2 changed files with 8 additions and 2 deletions
|
@ -141,9 +141,10 @@ class Blobbiness {
|
||||||
blob.mergeBrush(lastPath);
|
blob.mergeBrush(lastPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Remove cursor preview during snapshot, then bring it back
|
||||||
blob.cursorPreview.remove();
|
blob.cursorPreview.remove();
|
||||||
blob.cursorPreview = null;
|
|
||||||
blob.onUpdateSvg();
|
blob.onUpdateSvg();
|
||||||
|
blob.cursorPreview.parent = getGuideLayer();
|
||||||
|
|
||||||
// Reset
|
// Reset
|
||||||
blob.brush = null;
|
blob.brush = null;
|
||||||
|
|
|
@ -225,6 +225,11 @@ class TextTool extends paper.Tool {
|
||||||
this.active = false;
|
this.active = false;
|
||||||
}
|
}
|
||||||
handleKeyUp (event) {
|
handleKeyUp (event) {
|
||||||
|
if (event.event.target instanceof HTMLInputElement) {
|
||||||
|
// Ignore nudge if a text input field is focused
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (this.mode === TextTool.SELECT_MODE) {
|
if (this.mode === TextTool.SELECT_MODE) {
|
||||||
this.nudgeTool.onKeyUp(event);
|
this.nudgeTool.onKeyUp(event);
|
||||||
}
|
}
|
||||||
|
@ -236,7 +241,7 @@ class TextTool extends paper.Tool {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (this.mode === TextTool.SELECT_MODE) {
|
if (this.mode === TextTool.SELECT_MODE) {
|
||||||
this.nudgeTool.onKeyUp(event);
|
this.nudgeTool.onKeyDown(event);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
handleTextInput (event) {
|
handleTextInput (event) {
|
||||||
|
|
Loading…
Reference in a new issue