diff --git a/CHANGELOG.md b/CHANGELOG.md index e1530f41..ffc4c380 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,10 +5,10 @@ - main - renamed `--sync` option to `--send` (deprecation, backward-compatible) - osc - - messages received almost simultaneously are now bundled before being sent to the clients. This helps preserving their order. + - messages received almost simultaneously are now bundled before being sent to 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); when submitting a value to another widget, the feedback from this widget doesn't trigger a second osc message anymore + - 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; non-editable inputs can't steal focus anymore - added support for `null` value in `target` option to disable osc sending - 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. diff --git a/src/browser/js/app/widgets/inputs/input.js b/src/browser/js/app/widgets/inputs/input.js index d87df412..9b5b560c 100644 --- a/src/browser/js/app/widgets/inputs/input.js +++ b/src/browser/js/app/widgets/inputs/input.js @@ -46,7 +46,7 @@ module.exports = class Input extends _canvas_base { var html = `
- +
` @@ -56,7 +56,7 @@ module.exports = class Input extends _canvas_base { this.stringValue = '' if (this.getProp('editable')) { - + this.canvas.attr('tabindex', 0) this.canvas.on('focus', this.focus.bind(this)) this.input = $('')