Pārlūkot izejas kodu

shift 和ctrl的功能调转一下

liwei 1 gadu atpakaļ
vecāks
revīzija
a5ec65af5b
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  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 lastId = outs[outs.length-1];
    
-    if (e.ctrlKey) {
+    if (e.shiftKey) {
       objs.forEach(o=>{
         if (outs.indexOf(o) == -1) {
           outs.push(o);
@@ -596,7 +596,7 @@ export class SelectCtrl extends ModuleControl<EditorModule> {
     }
     
     let selected = outs;
-    if (e.shiftKey) {//反选
+    if (e.ctrlKey) {//反选
       selected = [];
       objs.forEach(o=>{
          if (outs.indexOf(o) == -1) selected.push(o);