mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2024-12-22 21:42:30 -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);
|
||||
}
|
||||
|
||||
// Remove cursor preview during snapshot, then bring it back
|
||||
blob.cursorPreview.remove();
|
||||
blob.cursorPreview = null;
|
||||
blob.onUpdateSvg();
|
||||
blob.cursorPreview.parent = getGuideLayer();
|
||||
|
||||
// Reset
|
||||
blob.brush = null;
|
||||
|
|
|
@ -225,6 +225,11 @@ class TextTool extends paper.Tool {
|
|||
this.active = false;
|
||||
}
|
||||
handleKeyUp (event) {
|
||||
if (event.event.target instanceof HTMLInputElement) {
|
||||
// Ignore nudge if a text input field is focused
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.mode === TextTool.SELECT_MODE) {
|
||||
this.nudgeTool.onKeyUp(event);
|
||||
}
|
||||
|
@ -236,7 +241,7 @@ class TextTool extends paper.Tool {
|
|||
}
|
||||
|
||||
if (this.mode === TextTool.SELECT_MODE) {
|
||||
this.nudgeTool.onKeyUp(event);
|
||||
this.nudgeTool.onKeyDown(event);
|
||||
}
|
||||
}
|
||||
handleTextInput (event) {
|
||||
|
|
Loading…
Reference in a new issue