You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On native platforms and browsers using a triple click (with a mouse) on text in a textfield one selects all text in the textfield. Flutter doesn't do this, but rather deselects the selected word.
Proposal
Flutter should support this to match native platforms and browsers.
I also note that a double tap followed by a drag doesn't replicate the native iOS behaviour. In native apps, this gesture selects a block of text. I've added this as a separate issue: #64550
I’ll be taking this on as one of my priorities. It depends on a refactor but I am working on it. I’ll post updates here as I progress.
Reacted by Erlend, Delonzek, Marwan Sulaiman, Luca Dillenburg, Dominik Šimoník, Justin McCandless, Matthew Gamble, Viride, Simon Bengtsson, Nazar Kahaniak and 8 more
Hey @djsjr, thanks for your interest in this project. I have a proof of concept PR as well as a design doc here. I'm currently working on some related work #109573 which is building a GestureRecognizer that can handle taps and drags for text selection (e.g. double tap to drag, triple tap to drag). Once that is done, I will continue moving this project forward.
Reacted by Simon Bengtsson, djsjr, Eugene Pisotsky and Benjamin Quinn
Hey @djsjr, thanks for your interest in this project. I have a proof of concept PR as well as a design doc here. I'm currently working on some related work #109573 which is building a GestureRecognizer that can handle taps and drags for text selection (e.g. double tap to drag, triple tap to drag). Once that is done, I will continue moving this project forward.
If double tap/triple tap enabled, there is a delay issue (#110300) which makes user experience awful.
Does Flutter have the plan to polish these basic controls thoroughly according to the desktop usage habits?
It is useless to just bring all the mobile controls to the desktop without making any changes.
Desktop users use mouse frequently, click(double/triple)/scroll events are important.
In terms of just closing this issue "Supporting select all text on triple click" I am currently working on introducing a ParagraphBoundary subclass in #116549 that will allow for this behavior. That PR is centered around keyboard actions but the boundary subclass will be reusable. Once that is merged I'll start another PR to add triple tap to select for tap/clicks and that should close this issue.
Updates on other touch/mouse text gestures:
As of recent #117502 was merged that added support for double tap/click + drag to select text word by word. It also added support for dragging to move the cursor on mobile platforms.
#101151 is the larger project that aims to make these tap/click gestures overridable. This is still in progress and was waiting on #117502 to get merged.
Reacted by misoshiru12
Reacted by djsjr, Simon Bengtsson, Justin McCandless, Beatrice Ionascu and Greg Price
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.
Activity
HansMuller commentedon Aug 12, 2020
CC @justinmc
justinmc commentedon Aug 12, 2020
Thanks for pointing this out! I agree Flutter should support this.
Two details I want to call attention to:
dave commentedon Aug 25, 2020
I noticed this within a few minutes of playing with a flutter app on my iPhone, so I'd say it's a significant issue.
Can't speak for Android but as you say the usual behaviour on iOS is to select the paragraph.
dave commentedon Aug 25, 2020
I also note that a double tap followed by a drag doesn't replicate the native iOS behaviour. In native apps, this gesture selects a block of text. I've added this as a separate issue: #64550
ferhatb commentedon Dec 17, 2020
/cc @mdebbar
lukepighetti commentedon Feb 13, 2021
Triple click doesn't work as expected on flutter web macOS (select all in element?)
27 remaining items
Renzo-Olivares commentedon Mar 17, 2022
I’ll be taking this on as one of my priorities. It depends on a refactor but I am working on it. I’ll post updates here as I progress.
umitk34 commentedon May 19, 2022
Hey, @Renzo-Olivares I would like to hear about your progress so far?
Renzo-Olivares commentedon May 19, 2022
Hey @umitk34 I'm currently working on a proof of concept and design doc and will post it here as soon as it's ready. Thank you for the interest.
djsjr commentedon Aug 21, 2022
@Renzo-Olivares Any update on this?
Renzo-Olivares commentedon Aug 23, 2022
Hey @djsjr, thanks for your interest in this project. I have a proof of concept PR as well as a design doc here. I'm currently working on some related work #109573 which is building a
GestureRecognizerthat can handle taps and drags for text selection (e.g. double tap to drag, triple tap to drag). Once that is done, I will continue moving this project forward.ngugcx commentedon Aug 30, 2022
If double tap/triple tap enabled, there is a delay issue (#110300) which makes user experience awful.
Does Flutter have the plan to polish these basic controls thoroughly according to the desktop usage habits?
It is useless to just bring all the mobile controls to the desktop without making any changes.
Desktop users use mouse frequently, click(double/triple)/scroll events are important.
Renzo-Olivares commentedon Sep 7, 2022
@ngugcx I am working on a new
TapAndDragGestureRecognizer, where that delay is not an issue.seel-channel commentedon Oct 21, 2022
A solution to this issue
bionascu commentedon Jan 5, 2023
Hi @Renzo-Olivares! Any chance there has been some progress on this? Many thanks!! 🙏
Renzo-Olivares commentedon Jan 5, 2023
Sure thing @bionascu!
In terms of just closing this issue "Supporting select all text on triple click" I am currently working on introducing a
ParagraphBoundarysubclass in #116549 that will allow for this behavior. That PR is centered around keyboard actions but the boundary subclass will be reusable. Once that is merged I'll start another PR to add triple tap to select for tap/clicks and that should close this issue.Updates on other touch/mouse text gestures:
As of recent #117502 was merged that added support for double tap/click + drag to select text word by word. It also added support for dragging to move the cursor on mobile platforms.
#101151 is the larger project that aims to make these tap/click gestures overridable. This is still in progress and was waiting on #117502 to get merged.
reza00farjam commentedon Apr 5, 2023
@Renzo-Olivares , Hi!
I faced this issue even in the latest release, did it fixed somewhere else?
Renzo-Olivares commentedon Apr 6, 2023
@reza00farjam Hello, it is not fixed in the most recent stable release but it is fixed in master.
github-actions commentedon Apr 20, 2023
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 -vand a minimal reproduction of the issue.