Skip to content

Add application-side Keys construction support#11271

Draft
amirHdev wants to merge 1 commit intoslint-ui:masterfrom
amirHdev:issue-11117-keys-from-app-logic
Draft

Add application-side Keys construction support#11271
amirHdev wants to merge 1 commit intoslint-ui:masterfrom
amirHdev:issue-11117-keys-from-app-logic

Conversation

@amirHdev
Copy link
Copy Markdown
Contributor

@amirHdev amirHdev commented Apr 5, 2026

Summary

add a public constructor path for Keys values from application code and support setting keys properties from the Node and Python interpreter APIs

This adds Keys::from_key_name_or_string(...) plus modifier builder helpers in core and re exports from the Rust API.
Node accepts either a string such as "Escape" or an object such as { key: "Plus", control: true, ignoreShift: true } when assigning to a keys property. python accepts either a string or a dict with the corresponding fields.

Tests

  • cargo test -p i-slint-core test_keys_from_key_name_or_string

@amirHdev amirHdev force-pushed the issue-11117-keys-from-app-logic branch 4 times, most recently from a92fefd to 76eaa7f Compare April 5, 2026 18:02
@amirHdev amirHdev force-pushed the issue-11117-keys-from-app-logic branch from 76eaa7f to 52aba10 Compare April 6, 2026 11:05
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