Skip to content

Game clipboard is not shared with system clipboard when running HTML5 exports #12587

Closed
@Goutte

Description

Operating system or device, Godot version, GPU Model and driver (if graphics related):

  • Debian and Ubuntu, on Chromium and Firefox.
  • Godot 2.1.4 stable
  • HTML5 exports only (work with regular binaries)

Issue description:

System clipboard contents cannot be pasted in controls such as LineEdit. The game has its own clipboard contents and it is not shared with the system.

OS.get_clipboard() stays empty unless we copy text from the game itself.

This is confusing for users because HTML input fields do share their clipboard with the system.

Steps to reproduce:

  1. Make a scene with a LineEdit.
  2. Export it to HTML5
  3. Run it in a browser (I use php -S when I'm in a hurry or too lazy, to avoid file:// issues)
  4. Copy text from any source but the game (eg: the URL bar of the browser)
  5. Try to paste it in the LineEdit.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions