dioxus icon indicating copy to clipboard operation
dioxus copied to clipboard

Support for paste for the web backend.

Open Emm opened this issue 2 years ago • 1 comments

Specific Demand

There is currently an onpaste handler. Unfortunately, the event itself appears to have no payload. It would be great to get a reference to the underlying DataTransfer or to a wrapper.

Emm avatar Dec 20 '23 19:12 Emm

A platform agnostic wrapper around onpaste would be great. We could reuse FileEngine for the file section of the event and store a list of enums for the items in the paste event.

https://github.com/DioxusLabs/dioxus/pull/1402 exposes the raw web-sys type for all events with a trait.

ealmloff avatar Dec 20 '23 21:12 ealmloff