Davidobot / love.js

LÖVE ported to the web using Emscripten, updated to the latest Emscripten and LÖVE (v11.5)
MIT License
605 stars 27 forks source link

love.system.setClipboardText silently fails #52

Open yumaikas opened 2 years ago

yumaikas commented 2 years ago

I'm building a vector/line editor, and one of bits of functionality involved is setting the clipboard with the current contents of the given scene, and this doesn't work. I know that browser clipboards can be a bit fiddly, though this should work since it's user-initiated.

I'm willing to help sort this out, provided it is in scope.

Davidobot commented 2 years ago

A workaround would be to use the API player and call JS from within lua: https://github.com/pthom/hello_imgui/issues/3#issuecomment-678566248

The better approach would be for me to bake this into the code