Skip to content

native2: Command-C after a web text selection in Safari copies nothing #188

Closed

Description

@iamnbutler

Found by live-check's #88 phrase check on the dev app with #187, which makes the marker-based desktop_select work.

The selection completes and reads back exactly, but nothing copies it:

  • Background desktop_key Command-C to Safari is ignored, and the clipboard stays the same.
  • desktop_menu Edit > Copy is refused because the item is disabled. Safari disables Copy while it isn't the active app.
  • Running desktop_focus before or after the selection didn't fix it. One attempt copied the page URL instead, so focus seems to land in the address field or move the selection.

The Node stack passed this check because its desktop_open brought Safari to the front (fixed for native2 by #162).

Options: run the copy in the foreground (activate Safari, restore the marker selection in the web area, then Command-C), or have the check read the selection back through AXSelectedText on the web area instead of the clipboard.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions