I need this mainly so users can copy and paste long strings of text to use as secret keys for authentication such as “PTsky0EITXT8agihiKu3FiPZ9pjAmKDjqGVvF4iQ”
Created a ticket: DEF-2070
Sorry to drag DEF-2070 out from the depths of the backlog, but just to see if it’s on the horizon? This would be useful to copy and share unique item IDs for a game I’m building.
Amazing. I was going to have to look for something like that in a few hours.
I hadn’t, thanks for the pointer! Works a charm.
@britzl could this work with HTML5?
Maybe. It’s another security thing that needs to be circumvented though. It might be doable.
That would be awesome!
The code for copying to clipboard is basically this:
Defos has a
defos.on_click() that lets you run a callback from the onclick JS event.