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:
- Add
set_web_user_interaction to hotkey component, such that a Ctrl+V hotkey could access clipboard.
- 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.
- 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?
I would like to use the commonly used
Ctrl+Vhotkey 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:
set_web_user_interactiontohotkeycomponent, such that aCtrl+Vhotkey could access clipboard.hotkeysupport tobutton.set_key_trigger, such that I could trigger adruid:new_button(...):set_web_user_interaction(true)with aCtrl+V, not only a single key.hotkeycomponent could trigger abuttonwith.set_web_user_interaction(true)setup.Do any of the above features fit into Druid? What are the potential pitfalls?