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.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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
textChangeevent, or replace it.The name of the event is to be determined. Existing proposals are:
inputinputevents do not fire on backspace when emptykeyDownkeyUpevent; Does not fire on arrow keys as expectedkeydeleteTapThe fourth option, proposed by @NathanWalker, is to add a modifier to the existing
textChangeto not break existing code. E.g.:By the way, a functional patch that implements the
deleteTapevent is available at https://gist.github.com/Mwni/4ee9c71199f12c599c0848d52881e7faBeta Was this translation helpful? Give feedback.
All reactions