Skip to content

emscripten: Attempt at adding clipboard support. - #14048

Draft
icculus wants to merge 1 commit into
libsdl-org:mainfrom
icculus:sdl3-emscripten-chrome-clipboard
Draft

emscripten: Attempt at adding clipboard support.#14048
icculus wants to merge 1 commit into
libsdl-org:mainfrom
icculus:sdl3-emscripten-chrome-clipboard

Conversation

@icculus

@icculus icculus commented Sep 25, 2025

Copy link
Copy Markdown
Collaborator

This is not usable as-is, do not merge.

Reference Issue #13785.

This is not usable as-is, do not merge.

Reference Issue libsdl-org#13785.
@icculus icculus self-assigned this Sep 25, 2025
@slouken slouken added this to the 3.6.0 milestone Sep 25, 2025
@whrvt

whrvt commented Feb 18, 2026

Copy link
Copy Markdown
Contributor

I know this is still in an early state, but here are a couple small changes I've made to get this usable enough for our needs in Firefox/Chrome/Safari/Vivaldi (patch 4 is most relevant):
link

The main changes are to switch out the polling for an event listener (polling causes a "Paste" context menu to pop up every second on Firefox), and using HEAPU8 instead of Module.HEAPU8 to avoid a crash. We don't care about clipboard change events, so that part will probably still need to be worked out somehow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants