|
@@ -74,7 +74,7 @@ export class EditScence extends SGraphScene {
|
|
|
// this.undoStack.push(new SGraphAddCommand(this, item));
|
|
|
this.grabItem = item;
|
|
|
this.focusItem = item;
|
|
|
-
|
|
|
+ console.log(this)
|
|
|
return true
|
|
|
}
|
|
|
|
|
@@ -182,6 +182,7 @@ export class EditScence extends SGraphScene {
|
|
|
* 完成事件创建的回调函数
|
|
|
*/
|
|
|
finishCreated(item: any) {
|
|
|
+ console.log(3333333333333)
|
|
|
this.setCmd = 0;
|
|
|
this.focusItem = item;
|
|
|
this.selectContainer.toggleItem(item)
|
|
@@ -224,9 +225,9 @@ export class EditScence extends SGraphScene {
|
|
|
if (this.grabItem) {
|
|
|
this.grabItem.onKeyDown(event);
|
|
|
}
|
|
|
- if (event.key == "Enter") {
|
|
|
- this.cmd = 0
|
|
|
- }
|
|
|
+ // if (event.key == "Enter") {
|
|
|
+ // this.cmd = 0
|
|
|
+ // }
|
|
|
return false
|
|
|
}
|
|
|
}
|