Skip to content

Fix handling of modifier keys on wasm#3354

Open
MarinPostma wants to merge 1 commit into
iced-rs:masterfrom
MarinPostma:correct-handling-of-modifier-wasm
Open

Fix handling of modifier keys on wasm#3354
MarinPostma wants to merge 1 commit into
iced-rs:masterfrom
MarinPostma:correct-handling-of-modifier-wasm

Conversation

@MarinPostma

@MarinPostma MarinPostma commented Jun 10, 2026

Copy link
Copy Markdown

This PR fixes the implementation of modifier keys support on the wasm platform. On wasm, the we just assumed "not macos", but in reality, we need to perform a runtime platform check on wasm. This is what this PR implements: platform is detected at window initialization, and store in a static for the rest of the session.

@MarinPostma MarinPostma changed the title Fix handling of super modifier key on wasm Fix handling of modifier keys on wasm Jun 10, 2026
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.

1 participant