Skip to content

Detect when delete is typed into a TextField #14809

@pauldemarco

Description

@pauldemarco

I'm attempting to make a "CodeEntry" widget, consisting of 4 separate TextFields that accept a single digit each:

bitmap

It should auto focus the next fields as it's being filled out, and move to the previous ones if being deleted.

The problem occurs when a new field is focused and 'Delete' is immediately typed. It should move back to previous field. It will not work since the onChanged is not called.

Any ideas?

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: text inputEntering text in a text field or keyboard related problemscustomer: crowdAffects or could affect many people, though not necessarily a specific customer.found in release: 1.21Found to occur in 1.21frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions