|
@@ -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);
|