Dimchikkk / velo

App for brainstorming & sharing ideas 🦀 Learning Project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement Copy and Paste Functionality for `bevy_cosmic_edit`

Dimchikkk opened this issue · comments

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

The issue can be split into 2 parts if there is no clipboard crate that works both on native and wasm.

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.