editor: remove attempt to add multi select to keyboard navigation
This commit is contained in:
parent
89876f8c82
commit
3328332957
1 changed files with 2 additions and 2 deletions
|
|
@ -142,7 +142,7 @@ var Editor = class Editor {
|
|||
else if((e.key == 'ArrowLeft') || (e.key == 'ArrowRight')){
|
||||
const toSelectList = curWidget.parent.childrenHashes
|
||||
.map(h=>widgetManager.widgets[h])
|
||||
.filter(w=>w && w.parent==curWidget.parent && (!e.shiftKey || !this.selectedWidgets.includes(w)))
|
||||
.filter(w=>w && w.parent==curWidget.parent)
|
||||
if(toSelectList && toSelectList.length){
|
||||
toSelectList.sort((a,b)=>a.container.offsetLeft>b.container.offsetLeft)
|
||||
const idx = toSelectList.findIndex(e=>e.hash===curWidget.hash)
|
||||
|
|
@ -154,7 +154,7 @@ var Editor = class Editor {
|
|||
}
|
||||
|
||||
if(toSelect){
|
||||
this.select(toSelect, {multi: e.shiftKey})
|
||||
this.select(toSelect)
|
||||
}
|
||||
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue