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

Use IsDefault and IsCancel instead of key bindings #162

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

tenatus
Copy link
Contributor

@tenatus tenatus commented Sep 18, 2023

The key binding for Enter means that if you use the keyboard to put the focus on a Cancel button and press the enter key, the OK button would be clicked instead of the Cancel button.

Using IsDefault instead allows the enter key to click OK unless a different button has focus.

@CreateLab CreateLab merged commit acee40e into AvaloniaCommunity:master Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants