Skip to content
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

Add "primary" property for StandardButton (Dialog context) #7622

Open
antis81 opened this issue Feb 13, 2025 · 0 comments
Open

Add "primary" property for StandardButton (Dialog context) #7622

antis81 opened this issue Feb 13, 2025 · 0 comments
Labels
a:widgets Implementation of widgets (from std-widgets.slint) and their styles (mF,bS) enhancement New feature or request need triaging Issue that the owner of the area still need to triage

Comments

@antis81
Copy link

antis81 commented Feb 13, 2025

Feature Description

A small followup issue to #7240 just to get it out of my head (did not find a similar issue addressing this).

For Simple yes/no dialogs setting the input focus on the button is just fine. However when the use case gets slightly more complex and an additional input field also wants focus (for example a password dialog) this approach no longer works. In this example setting the input focus to the password field "steals" focus from the "ok" button.

The slint Button reference already discusses the primary property. Does this apply to StandardButton as well?

Product Impact

Yet another "quality of life" feature.

@antis81 antis81 added enhancement New feature or request need triaging Issue that the owner of the area still need to triage labels Feb 13, 2025
@hunger hunger added the a:widgets Implementation of widgets (from std-widgets.slint) and their styles (mF,bS) label Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:widgets Implementation of widgets (from std-widgets.slint) and their styles (mF,bS) enhancement New feature or request need triaging Issue that the owner of the area still need to triage
Projects
None yet
Development

No branches or pull requests

2 participants