Skip to content

Double-tap to select word in CupertinoTextField #9288

Closed

Description

@cbracken

Steps to Reproduce

  1. Tap in a text field in a Flutter app.
  2. Enter some text with spaces; e.g., foo bar baz.
  3. Double-tap on a word.

On iOS, the double-tapped word should be selected. This behaviour is iOS-specific and does not apply on Android.
The double-tapped word should be selected.

Flutter Doctor

[✓] Flutter (on Mac OS X 10.12.4 16E195, channel master)
• Flutter at /Users/cbracken/src/flutter/flutter
• Framework revision 1b948cb (2 days ago), 2017-04-05 12:27:59 -0700
• Engine revision 5d9a642
• Tools Dart version 1.23.0-dev.11.5

Activity

  1. added
    a: fidelityMatching the OEM platforms better
    platform-iosiOS applications specifically
    frameworkflutter/packages/flutter repository. See also f: labels.
    on Apr 7, 2017
  2. changed the title [-]Double-tap doesn't select text under edit on iOS[/-] [+]Double-tap doesn't select word in TextFields on iOS[/+] on Apr 7, 2017
  3. added this to the milestone on Apr 7, 2017
  4. ds84182 commented on Apr 8, 2017

    @ds84182
    Contributor

    Actually, this does apply to Android on M and above (I can double tap words in N to select them, and I remember being able to double tap to select in M)

    Edit: Also Flutter is missing Android M's "double tap drag" selection stuff.

  5. cbracken commented on Apr 8, 2017

    @cbracken
    MemberAuthor

    @ds84182 you're entirely right; thanks for the correction!

    I'd tested in the recipient field in the default SMS app, which appears to have special behaviour to convert completed recipients to chip-like widgets, but testing in the message text area, as you say, double-tap does indeed select a word.

    Updated the title, labels and description accordingly.

  6. eseidelGoogle commented on Apr 8, 2017

    @eseidelGoogle
    Contributor

    Note one of the nice things of Flutter is that because we write our own widgets, many features can be supported universally across OSes. If we decide the N+ behavior here is better we may be able to support that further back if desired. :)

  7. modified the milestones: 3: Current Milestone, on Dec 6, 2017
  8. added
    a: text inputEntering text in a text field or keyboard related problems
    on Dec 6, 2017
  9. Hixie commented on Dec 6, 2017

    @Hixie
    Contributor

    This is not on our immediate list of priorities, moving to next milestone.

  10. eseidelGoogle commented on Dec 6, 2017

    @eseidelGoogle
    Contributor

    I suspect this would be very simple to fix. But I agree, this probably doesn't make the cut for M3, but definitely close. :)

  11. mastercodekw commented on May 18, 2018

    @mastercodekw

    When should we expect a solution for the issue ?

  12. 3 remaining items

  13. Hixie commented on May 21, 2018

    @Hixie
    Contributor

    @mastercodekw Hard to say. We're not working on this right now, but it's on our list of things we'd like to get done in the coming months. Whether we get to it or not remains to be seen.

  14. reopened this on Oct 3, 2018
  15. self-assigned this
    on Nov 5, 2018
  16. changed the title [-]Double-tap doesn't select word in TextFields on iOS[/-] [+]Double-tap to select word in CupertinoTextField[/+] on Nov 6, 2018
  17. xster commented on Nov 6, 2018

    @xster
    Member

    Splitting Material TextField to #23972

  18. xster commented on Nov 6, 2018

    @xster
    Member

    Splitting Android iOS double-tap-(hold)-drag gestures to #23973

  19. dancojocaru2000 commented on Jan 3, 2019

    @dancojocaru2000

    This behavior should not only apply to CuperinoTextField, but to Material's TextField too when the platform is iOS! The Android behavior is very unnatural to use on iOS, even when using both an Android and an iOS phone. I guess it's muscle memory or something, but it's just unprofessional to break the platform rules when it comes to basic mechanics. As an example, MaterialApp already implements swipe to go back on iOS.

  20. xster commented on Jan 3, 2019

    @xster
    Member

    That's #23972. It's been fixed on master #24457.

  21. dancojocaru2000 commented on Jan 3, 2019

    @dancojocaru2000

    I see. Another suggestion: on hold, iOS doesn't select text, it shows a magnifier and moves the cursor until the finger is released.

  22. xster commented on Jan 5, 2019

    @xster
    Member
  23. github-actions commented on Aug 17, 2021

    @github-actions

    This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

  24. locked as resolved and limited conversation to collaborators on Aug 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

a: fidelityMatching the OEM platforms bettera: text inputEntering text in a text field or keyboard related problemsframeworkflutter/packages/flutter repository. See also f: labels.p: cupertino_uicupertino_ui package in flutter/packagesplatform-iosiOS applications specifically

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions