Implement Copy and Paste Functionality for `bevy_cosmic_edit`
Dimchikkk opened this issue · 2 comments
Dimchikkk commented
Keys: Ctrl+C / Ctrl+V
Source: https://github.com/StaffEngineer/velo/blob/main/crates/bevy_cosmic_edit/src/lib.rs
Note: would be cool to support both native and wasm targets
Dimchikkk commented
The issue can be split into 2 parts if there is no clipboard crate that works both on native and wasm.
Dimchikkk commented
Desktop is done: #146
Wasm can be done using https://rustwasm.github.io/wasm-bindgen/api/web_sys/struct.Clipboard.html with async API, ideally may be upstreamed to arboard
.