Repository navigation
[iOS 13] New Text Editing Gestures #34749
Copy link
Copy link
Closed
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: fidelityMatching the OEM platforms betterMatching the OEM platforms bettera: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemscustomer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.p: cupertino_uicupertino_ui package in flutter/packagescupertino_ui package in flutter/packagesplatform-iosiOS applications specificallyiOS applications specificallyteam-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework team
Description
Several new gestures were announced at WWDC related to editing text:
| Gesture | Confirmed on iOS (not just iPadOS)? | Flutter (#34749 (comment)) |
|---|---|---|
| 3 finger pinch to copy | ✅ | ✅ |
| Double 3 finger pinch to cut | ✅ | |
| 3 finger drop to paste | ✅ (with wrong message) | |
| 3 finger swipe left to undo | ✅ | ✅ |
| 3 finger swipe right to redo | ✅ | ✅ |
| 3 finger tap for shortcut menu | ||
| 3 finger double tap to select sentence | ❌ | ❌ |
| 4 finger double tap to select paragraph | ❌ | ❌ |
| Shake to undo | ✅ | ❌ |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2Important issues not at the top of the work listImportant issues not at the top of the work lista: fidelityMatching the OEM platforms betterMatching the OEM platforms bettera: text inputEntering text in a text field or keyboard related problemsEntering text in a text field or keyboard related problemscustomer: crowdAffects or could affect many people, though not necessarily a specific customer.Affects or could affect many people, though not necessarily a specific customer.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.p: cupertino_uicupertino_ui package in flutter/packagescupertino_ui package in flutter/packagesplatform-iosiOS applications specificallyiOS applications specificallyteam-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework team
Type
Projects
- StatusShow more project fieldsDone
Activity
justinmc commentedon Jun 24, 2019
I'm pretty sure I can't do any 2+ finger gestures in the simulator. I need to install the iOS 13 beta on a device.
justinmc commentedon Jun 24, 2019
After doing 3 finger pinch to copy, a little copy message shows up briefly:
justinmc commentedon Jul 18, 2019
Flutter currently has no built in undo/redo ability, but there is an issue out for it: #24222. The best solution for the undo/redo gestures here would be to implement that first.
Edit: There is also a shake to undo gesture. Added to the table above.
fbcouch commentedon Feb 11, 2022
I will dig into this a little bit more to try to come up with a pull request for you all, but I accidentally supported the swipe to undo/redo and shake to undo gestures (I was actually trying to just make the undo/redo buttons on the iPad keyboard work). I was able to do almost all of that through a plugin: https://github.com/twinsunllc/flutter_undo/blob/master/ios/Classes/SwiftFlutterUndoPlugin.swift
With the caveat that for some reason I do not understand, the undo button doesn't become highlighted until the 2nd keystroke without a change like this to the engine: twinsunllc/engine@cca7086
I'm going to take a look at the undo/redo stuff that's been added by @justinmc and see if I can figure out the right way to tie all of that in, but if anyone has suggestions on the right way to go about this, I'm all ears. My initial thought is that everything should go into the text editing plugin and pass messages over the text input channel to keep the undoManager and TextEditingHistory in sync.
justinmc commentedon Oct 5, 2022
@fbcouch I owe you a review on #98294, will do that later today. Then we should re-evaluate what's left for the gestures mentioned in this issue.
9 remaining items
flutter-triage-bot commentedon Aug 22, 2023
This issue is missing a priority label. Please set a priority label when adding the
triaged-frameworklabel.Renzo-Olivares commentedon Jun 25, 2024
Checking the current status of flutter:
3 finger pinch to copy works, and displays a small copy message.
3 finger double pinch to cut works, and displays a small cut message.
3 finger unpinch to paste works, but displays a message that says "nothing to paste", on native this says "paste"
Shake to undo prompts for undo but does nothing when pressed.
3 finger swipe left to undo works
3 finger swipe right to redo works
victorsanni commentedon Jun 16, 2025
Hi @justinmc and @Renzo-Olivares. As of this comment, Flutter supports all the gestures listed above on iOS except shake to undo (of which there is an open issue). Can this issue be closed to focus on shake to undo?
Renzo-Olivares commentedon Jun 16, 2025
Sounds good to me!
justinmc commentedon Jun 18, 2025
+1, I say close it! Thanks for keeping the backlog clean.
github-actions commentedon Jul 2, 2025
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.