Browse Source

shift 和ctrl的功能调转一下

liwei 1 year ago
parent
commit
a5ec65af5b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/modules/editor/controllers/SelectCtrl/index.ts

+ 2 - 2
src/modules/editor/controllers/SelectCtrl/index.ts

@@ -587,7 +587,7 @@ export class SelectCtrl extends ModuleControl<EditorModule> {
     let objs = this.store.selected.slice(0);
     let objs = this.store.selected.slice(0);
     let lastId = outs[outs.length-1];
     let lastId = outs[outs.length-1];
    
    
-    if (e.ctrlKey) {
+    if (e.shiftKey) {
       objs.forEach(o=>{
       objs.forEach(o=>{
         if (outs.indexOf(o) == -1) {
         if (outs.indexOf(o) == -1) {
           outs.push(o);
           outs.push(o);
@@ -596,7 +596,7 @@ export class SelectCtrl extends ModuleControl<EditorModule> {
     }
     }
     
     
     let selected = outs;
     let selected = outs;
-    if (e.shiftKey) {//反选
+    if (e.ctrlKey) {//反选
       selected = [];
       selected = [];
       objs.forEach(o=>{
       objs.forEach(o=>{
          if (outs.indexOf(o) == -1) selected.push(o); 
          if (outs.indexOf(o) == -1) selected.push(o);