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

+ 6 - 5
src/components/mapClass/EditScence.ts

@@ -985,9 +985,10 @@ export class EditScence extends SGraphScene {
                 this.setCmd = 'choice'
             }
         }
-        // if (event.key == "Enter") {
-        //     this.cmd = 0
-        // }
+        // 删除键功能
+        if(event.code=='Delete'){
+            this.deleiteItem()
+        }
         return false
     }
 
@@ -1037,8 +1038,8 @@ export class EditScence extends SGraphScene {
     }
 
     /**
-     * 管线item修改锚点 
-     * 
+     * 管线item修改锚点
+     *
     */
     updateTipeAnc(event: SMouseEvent): void {
         if (this.grabItem instanceof TipelineItem){