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.
Just a small addition for the
TextInput
widget.The
TextInput
has currently no*_maybe
methods likeButton
has theon_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 asButton::on_press_maybe
and can simplify the building of uis containing the TextInput.