Skip to content

Clipboard Get/Set Content #63

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
th3-cr34t0r opened this issue Mar 25, 2025 · 4 comments
Open

Clipboard Get/Set Content #63

th3-cr34t0r opened this issue Mar 25, 2025 · 4 comments
Labels
feature New feature or request help wanted Extra attention is needed

Comments

@th3-cr34t0r
Copy link

I have a need of this feature for my web app. I tried to make it happen with wasm_bindgen, but since it requires an async block to execute, the content extracted from the clipboard it the async block is tricky to be transfered to the sync app logic.

@orhun
Copy link
Owner

orhun commented Mar 25, 2025

There is an example usage of clipboard in rustwasm/wasm-bindgen#3223 with spawn_local function.

Can you try out the snippet there?

@orhun orhun added help wanted Extra attention is needed feature New feature or request labels Apr 1, 2025
@orhun
Copy link
Owner

orhun commented Apr 7, 2025

I guess we need to improve the async support for this as well: #72

@orhun
Copy link
Owner

orhun commented Apr 10, 2025

Hey @th3-cr34t0r! I did some experiments with async here and created a clipboard example in #80

Can you try it out and let me know?

@orhun
Copy link
Owner

orhun commented Apr 28, 2025

Closing since we have a clipboard example now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants