Skip to content

[iOS 13] New Text Editing Gestures #34749

Closed

Description

@justinmc

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 ✅ ❌

Activity

  1. justinmc commented on Jun 24, 2019

    @justinmc
    ContributorAuthor

    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.

  2. justinmc commented on Jun 24, 2019

    @justinmc
    ContributorAuthor

    After doing 3 finger pinch to copy, a little copy message shows up briefly:

    IMG_2933

  3. justinmc commented on Jul 18, 2019

    @justinmc
    ContributorAuthor

    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.

  4. added
    frameworkflutter/packages/flutter repository. See also f: labels.
    on Nov 26, 2019
  5. added
    customer: crowdAffects or could affect many people, though not necessarily a specific customer.
    on Mar 13, 2020
  6. fbcouch commented on Feb 11, 2022

    @fbcouch
    Contributor

    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.

  7. justinmc commented on Oct 5, 2022

    @justinmc
    ContributorAuthor

    @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.

  8. 9 remaining items

  9. flutter-triage-bot commented on Aug 22, 2023

    @flutter-triage-bot

    This issue is missing a priority label. Please set a priority label when adding the triaged-framework label.

  10. added
    P2Important issues not at the top of the work list
    on Aug 22, 2023
  11. Renzo-Olivares commented on Jun 25, 2024

    @Renzo-Olivares
    Contributor

    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

  12. victorsanni commented on Jun 16, 2025

    @victorsanni
    Contributor

    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?

  13. Renzo-Olivares commented on Jun 16, 2025

    @Renzo-Olivares
    Contributor

    Sounds good to me!

  14. justinmc commented on Jun 18, 2025

    @justinmc
    ContributorAuthor

    +1, I say close it! Thanks for keeping the backlog clean.

  15. github-actions commented on Jul 2, 2025

    @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.

  16. locked as resolved and limited conversation to collaborators on Jul 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: fidelityMatching the OEM platforms bettera: text inputEntering text in a text field or keyboard related problemscustomer: crowdAffects or could affect many people, though not necessarily a specific customer.frameworkflutter/packages/flutter repository. See also f: labels.p: cupertino_uicupertino_ui package in flutter/packagesplatform-iosiOS applications specificallyteam-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions