Skip to content

Support copy/paste in macOS shell text input #30709

Closed

Description

@stuartmorgan-g

We need to support clipboard.getData and clipboard.setData, as well as shortcut keys for copy and paste.

Activity

  1. stuartmorgan-g commented on Jun 11, 2019

    @stuartmorgan-g
    ContributorAuthor

    Shortcut keys will need to wait for Action support, but wiring up the clipboard.* channels should be straightforward.

  2. alexelisenko commented on Jun 26, 2019

    @alexelisenko

    @stuartmorgan I see that there was something merged to master for MacOS, but I wanted to confirm if this is now working? If not, any ETA on this would be greatly appreciated.

  3. franciscojma86 commented on Jun 26, 2019

    @franciscojma86
    Contributor

    This change was merged into the framework in this commit.

    You can now copy and paste strings into/from the system clipboard, but there are no keyboard shortcuts for it yet.

  4. alexelisenko commented on Jun 26, 2019

    @alexelisenko

    @franciscojma86 This is probably out of scope of this issue, but, how would one access the system clipboard without the keyboard shortcuts?

  5. stuartmorgan-g commented on Jun 29, 2019

    @stuartmorgan-g
    ContributorAuthor

    how would one access the system clipboard without the keyboard shortcuts?

    https://api.flutter.dev/flutter/services/Clipboard-class.html

  6. added this to the milestone on Aug 13, 2019
  7. BrunoEleodoro commented on Sep 11, 2019

    @BrunoEleodoro

    @stuartmorgan I'd like to contribute to that issue, can someone show me the path that I have to take to start contributing and try to solve that issue.

    Thanks.

  8. stuartmorgan-g commented on Sep 11, 2019

    @stuartmorgan-g
    ContributorAuthor

    We need a way to coordinate between the Edit menu and the current focus state in Flutter, so that the enable state of Cut/Copy/Paste in the Edit menu is correct, and sends the message to Flutter. @gspencergoog has given this some thought already, so may be able to provide more detail on how to approach this.

  9. BrunoEleodoro commented on Sep 12, 2019

    @BrunoEleodoro

    @gspencergoog Hi Greg! can you help me with some tutorial or how I can help you on that.

    Thanks.

  10. technolion commented on Oct 21, 2019

    @technolion

    As I see it, this issue is one of the few remaining show-stoppers that keeps developers to release flutter-based macOS applications (based on master channel), since you all did such a great job to advance macOS support.

    Is there any chance copy/paste support gets implemented soon?

  11. gspencergoog commented on Oct 21, 2019

    @gspencergoog
    Contributor

    I actually haven't started looking at the menu support yet, but it's on my radar. We should have the cmd-x/cmd-c/cmd-v support working fairly soon. There is an issue with detecting modifier keys in the keyboard handling: #38076 Once that gets fixed, it should be simple to add support for keyboard copy/paste in text fields, and the menu support will follow. cc/ @franciscojma86

  12. technolion commented on Oct 21, 2019

    @technolion

    Great, thank you!

  13. gspencergoog commented on Dec 4, 2019

    @gspencergoog
    Contributor

    I'm going to close this, as I believe that the only remaining work here is to coordinate it with the menu bar, and that would be covered by #23600.

  14. technolion commented on Dec 5, 2019

    @technolion

    There still seem to be problems with cmd-x/cmd-c/cmd-v/cmd-a support, which stops working after switching between flutter app and other apps. Please see #46151

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

  16. 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: desktopRunning on desktopcustomer: octopodengineflutter/engine related. See also e: labels.platform-macosBuilding on or for macOS specifically

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions