Sfoglia il codice sorgente

新增esc删除功能

YaolongHan 4 anni fa
parent
commit
cb320661d2
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/components/mapClass/EditScence.ts

+ 1 - 1
src/components/mapClass/EditScence.ts

@@ -838,7 +838,6 @@ export class EditScence extends SGraphScene {
     onKeyDown(event: KeyboardEvent): any {
         if (this.grabItem) {
             this.grabItem.onKeyDown(event);
-            console.log('event',event)
             if(event.code == "Escape"){
                const item = this.grabItem;
                this.grabItem = null
@@ -846,6 +845,7 @@ export class EditScence extends SGraphScene {
                if(this.view){
                    this.view.update()
                }
+               this.setCmd = 'choice'
             }
         }
         // if (event.key == "Enter") {