mirror of
https://github.com/scratchfoundation/scratch-flash.git
synced 2024-12-12 17:11:17 -05:00
Merge pull request #259 from nathan/fix-pencil-keyup
Fixed pressing keys while drawing with the pencil
This commit is contained in:
commit
2527a113be
1 changed files with 5 additions and 11 deletions
|
@ -89,12 +89,6 @@ package svgeditor.tools
|
||||||
private function onKeyRelease(e:KeyboardEvent):void {
|
private function onKeyRelease(e:KeyboardEvent):void {
|
||||||
shiftDown = e.shiftKey;
|
shiftDown = e.shiftKey;
|
||||||
if(currentEvent) currentEvent.shiftKey = e.shiftKey;
|
if(currentEvent) currentEvent.shiftKey = e.shiftKey;
|
||||||
|
|
||||||
// Store start straight line segment
|
|
||||||
if(newElement) {
|
|
||||||
newElement.path.push(['L', mouseX, mouseY]);
|
|
||||||
lastSavePt = new Point(mouseX, mouseY);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override protected function mouseDown(p:Point):void {
|
override protected function mouseDown(p:Point):void {
|
||||||
|
|
Loading…
Reference in a new issue