Input+Backspace event for TextField #38
Replies: 2 comments 4 replies
-
I guess the main con for using the existing |
Beta Was this translation helpful? Give feedback.
-
I was thinking another options would be to provide a flag on the event emitted from textChange or a binding alongside it, eg:
But I also like your suggestion of new |
Beta Was this translation helpful? Give feedback.
-
This is a proposal for an additional event on TextFields and editable TextViews that triggers both on text change and on backspace even when the field is empty. This new hybrid event could co-exist with the existing
textChange
event, or replace it.The name of the event is to be determined. Existing proposals are:
input
input
events do not fire on backspace when emptykeyDown
keyUp
event; Does not fire on arrow keys as expectedkey
deleteTap
The fourth option, proposed by @NathanWalker, is to add a modifier to the existing
textChange
to not break existing code. E.g.:By the way, a functional patch that implements the
deleteTap
event is available at https://gist.github.com/Mwni/4ee9c71199f12c599c0848d52881e7faBeta Was this translation helpful? Give feedback.
All reactions