druid
druid copied to clipboard
`Ctrl+V` clipboard paste in HTML5
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_interactiontohotkeycomponent, such that aCtrl+Vhotkey could access clipboard. - Add
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. - Ability to trigger the button in code, such that a
hotkeycomponent could trigger abuttonwith.set_web_user_interaction(true)setup.
Do any of the above features fit into Druid? What are the potential pitfalls?
Hello! From all of this options seems first, to add the same web interaction to the hotkey the best
From pitfalls need to understand is it can grab all modifier buttons correctly and also check if the Macos will work good (AFAIK the command button is not tracked in the browser, but not sure)