Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text input maybe #2390

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Text input maybe #2390

wants to merge 5 commits into from

Conversation

JL710
Copy link
Contributor

@JL710 JL710 commented Apr 17, 2024

Just a small addition for the TextInput widget.

The TextInput has currently no *_maybe methods like Button has the on_press_maybe. This PR adds them.

Added Methods:

  • on_input_maybe
  • on_submit_maybe
  • on_paste_maybe

These methods, especially the on_input_maybe, are usefull in the same manner as Button::on_press_maybe and can simplify the building of uis containing the TextInput.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant