From 89da9d5417d1c95a6bd5cef7b3503c5d0c44c3ae Mon Sep 17 00:00:00 2001 From: Eric Theise Date: Sun, 13 Nov 2022 09:12:24 -0800 Subject: [PATCH] Typos. --- CHANGELOG.md | 4 ++-- resources/docs/docs/widgets/properties-reference.md | 2 +- src/client/widgets/basics/button.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e08fd6ba..5bdd07a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,11 +10,11 @@ - add `Start minimized` menu option - misc - - change noFocus client option behavior: the defalt client window now doesn't take the focus at all, even when a text input is clicked. + - change noFocus client option behavior: the default client window now doesn't take the focus at all, even when a text input is clicked. - colorize debug messages for sent and received osc/midi messages - scripting - - add `setFocusable()` function to change the focusability of the window on the fly (allows reenabling focus temporarely to interact with a text widget using a dedicated toggle button for example) + - add `setFocusable()` function to change the focusability of the window on the fly (allows reenabling focus temporarily to interact with a text widget using a dedicated toggle button for example) - add `reload()` function - expose Navigator object with `getNavigator()` diff --git a/resources/docs/docs/widgets/properties-reference.md b/resources/docs/docs/widgets/properties-reference.md index a37596fc..feb3406d 100644 --- a/resources/docs/docs/widgets/properties-reference.md +++ b/resources/docs/docs/widgets/properties-reference.md @@ -100,7 +100,7 @@ |
off#
| `*` | 0 | Set to `null` to send send no argument in the osc message. Must be different from `on`. Ignored if `mode` is `momentary` or `tap`. | |
mode#
| `string` | "toggle" | Interaction mode:
- `toggle` (classic on/off switch)
- `push` (press & release)
- `momentary` (no release, no value sent with the address)
- `tap` (no release, sends `on` as value)

Choices: `toggle`, `push`, `momentary`, `tap` | |
doubleTap#
| `boolean` | false | Set to `true` to make the button require a double tap to be pushed instead of a single tap | - |
decoupled#
| `boolean` | false | Set to `true` make the local feedback update only when it receives a value from an osc/midi message that matches the `on` or `off` property.

When `decoupled`, the button's value is ambiguous: when intercated with, it will send the value that's requested (`on` or `off` for `toggle` and `push` modes, `on` for `tap` mode, `null` for `momentary`), otherwise it will return the value received from the feedback message (`on` or `off` property).
- `decoupled (toggle mode that only updates its state when it receives a value from an osc/midi message*)`

From a script property, feedback messages can be simulated with:

`set("widget_id", value, {external: true})` | + |
decoupled#
| `boolean` | false | Set to `true` make the local feedback update only when it receives a value from an osc/midi message that matches the `on` or `off` property.

When `decoupled`, the button's value is ambiguous: when interacted with, it will send the value that's requested (`on` or `off` for `toggle` and `push` modes, `on` for `tap` mode, `null` for `momentary`), otherwise it will return the value received from the feedback message (`on` or `off` property).
- `decoupled (toggle mode that only updates its state when it receives a value from an osc/midi message*)`

From a script property, feedback messages can be simulated with:

`set("widget_id", value, {external: true})` | === "scripting" diff --git a/src/client/widgets/basics/button.js b/src/client/widgets/basics/button.js index 2d5ea5e9..372a965e 100644 --- a/src/client/widgets/basics/button.js +++ b/src/client/widgets/basics/button.js @@ -46,7 +46,7 @@ class Button extends Widget { doubleTap: {type: 'boolean', value: false, help: 'Set to `true` to make the button require a double tap to be pushed instead of a single tap'}, decoupled: {type: 'boolean', value: false, help: [ 'Set to `true` make the local feedback update only when it receives a value from an osc/midi message that matches the `on` or `off` property.', - 'When `decoupled`, the button\'s value is ambiguous: when intercated with, it will send the value that\'s requested (`on` or `off` for `toggle` and `push` modes, `on` for `tap` mode, `null` for `momentary`), otherwise it will return the value received from the feedback message (`on` or `off` property).', + 'When `decoupled`, the button\'s value is ambiguous: when interacted with, it will send the value that\'s requested (`on` or `off` for `toggle` and `push` modes, `on` for `tap` mode, `null` for `momentary`), otherwise it will return the value received from the feedback message (`on` or `off` property).', '- `decoupled (toggle mode that only updates its state when it receives a value from an osc/midi message*)`', 'From a script property, feedback messages can be simulated with:', '`set("widget_id", value, {external: true})`'