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

Merged
merged 2 commits into from
Sep 7, 2024
Merged

Text input maybe #2390

merged 2 commits into from
Sep 7, 2024

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.

@hecrj hecrj added this to the 0.13 milestone Sep 7, 2024
@hecrj hecrj added feature New feature or request widget addition labels Sep 7, 2024
Copy link
Member

@hecrj hecrj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@hecrj hecrj enabled auto-merge September 7, 2024 21:01
@hecrj hecrj merged commit dff14bd into iced-rs:master Sep 7, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addition feature New feature or request widget
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants