Document InputActivity's optional selected_callback - #11
Open
bitcoin3us wants to merge 1 commit into
Open
bitcoin3us wants to merge 1 commit into
bitcoin3us wants to merge 1 commit into
Conversation
…k key Companion to MicroPythonOS/MicroPythonOS#298: `selected_callback(value)` fires on every radiobuttons/dropdown pick before Save (re-tapping the active radio fires again) so pickers can preview a choice live, e.g. play a sound. `changed_callback` semantics are unchanged. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Companion to MicroPythonOS/MicroPythonOS#298, which adds an optional
selected_callbackkey to the setting dict handled byInputActivity.Adds a bullet to the InputActivity page (next to
allow_deselect) and a pointer bullet on the SettingActivity keys list:selected_callback(value)fires on every radiobuttons/dropdown pick before Save, including a re-tap of the already-selected radio, so a picker can preview a choice live (e.g. play the sound the user just tapped).changed_callbackstill fires only after Save when the stored value changed; exceptions insideselected_callbackare logged and swallowed.Should merge together with #298.
🤖 Generated with Claude Code