input: when submitting a value to another widget, the feedback from this widget doesn't trigger a second osc message anymore
This commit is contained in:
parent
39ae150a81
commit
b67513625d
2 changed files with 4 additions and 2 deletions
|
|
@ -8,7 +8,7 @@
|
|||
- messages received almost simultaneously are now bundled before being sent to the clients. This helps preserving their order.
|
||||
- widgets
|
||||
- sliders/pads: when receiving feedback while touched, the widget waits to be released before updating to the latest received value.
|
||||
- input: the widget's value is no longer validated when leaving focus by clicking somewhere else or hitting the `Tab` key (it must be submitted by hitting the `Enter` key)
|
||||
- input: the widget's value is no longer validated when leaving focus by clicking somewhere else or hitting the `Tab` key (it must be submitted by hitting the `Enter` key); when submitting a value to another widget, the feedback from this widget doesn't trigger a second osc message anymore
|
||||
- misc
|
||||
- property fields are now parsed using [JSON5](https://github.com/json5/json5), a more flexible notation. Session files are still written in standard JSON format, this is just a way to avoid typing mistakes when using the editor.
|
||||
- remote editing also accepts JSON5 notation
|
||||
|
|
|
|||
|
|
@ -154,12 +154,14 @@ module.exports = class Input extends _canvas_base {
|
|||
for (var i=widget.length-1; i>=0; i--) {
|
||||
if (widget[i].setValue) {
|
||||
widget[i].setValue(this.value, options)
|
||||
this.setValue(widget[i].getValue(), {...options, internal:true})
|
||||
this.setValue(widget[i].getValue(), {...options, internal:true, sentOnce:options.send})
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (options.sentOnce) options.send = false
|
||||
|
||||
this.stringValue = this.getStringValue()
|
||||
this.draw()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue