Skip to content

Ctrl+V clipboard paste in HTML5 #324

Description

@sashkent3

I would like to use the commonly used Ctrl+V hotkey for a clipboard paste action in an HTML5 game. This turns out to be quite difficult because of the security constraints around access to the clipboard on the web.

One of the following options would help me a lot:

  1. Add set_web_user_interaction to hotkey component, such that a Ctrl+V hotkey could access clipboard.
  2. Add hotkey support to button.set_key_trigger, such that I could trigger a druid:new_button(...):set_web_user_interaction(true) with a Ctrl+V, not only a single key.
  3. Ability to trigger the button in code, such that a hotkey component could trigger a button with .set_web_user_interaction(true) setup.

Do any of the above features fit into Druid? What are the potential pitfalls?

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

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions