editor: select newly created widgets/tab except when copy-pasting
This commit is contained in:
parent
5f83b062a6
commit
aa7c19dc86
2 changed files with 13 additions and 2 deletions
|
|
@ -19,7 +19,9 @@
|
|||
- tree: activate tab when selecting it in the project tree
|
||||
- tree: allow dragging widgets from a container to another
|
||||
- tree: expand container when a new widget is created inside it
|
||||
- tree: add support for filtering widgets by type (by typing `type:fader` for example)
|
||||
- smarter shift+drag selection: allow selecting widgets in the area when the event started on the parent container
|
||||
- select newly created widgets/tab except when copy-pasting
|
||||
|
||||
- remote control
|
||||
- add `/STATE/SEND` command
|
||||
|
|
|
|||
|
|
@ -237,7 +237,10 @@ var handleClick = function(event) {
|
|||
|
||||
updateWidget(editor.selectedWidgets[0], indexes)
|
||||
editor.pushHistory(indexes)
|
||||
editor.widgetTree.showWidget(editor.selectedWidgets[0].children[0])
|
||||
|
||||
var newWidget = editor.selectedWidgets[0].children[editor.selectedWidgets[0].children.length - 1]
|
||||
editor.select([newWidget])
|
||||
editor.widgetTree.showWidget(newWidget)
|
||||
|
||||
|
||||
}
|
||||
|
|
@ -275,7 +278,13 @@ var handleClick = function(event) {
|
|||
|
||||
updateWidget(editor.selectedWidgets[0], indexes)
|
||||
editor.pushHistory(indexes)
|
||||
editor.widgetTree.showWidget(editor.selectedWidgets[0].children[0])
|
||||
|
||||
var newWidget = editor.selectedWidgets[0].children[editor.selectedWidgets[0].children.length - 1]
|
||||
|
||||
editor.select([newWidget])
|
||||
editor.widgetTree.showWidget(newWidget)
|
||||
newWidget.parent.setValue(newWidget.parent.children.indexOf(newWidget))
|
||||
|
||||
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue