-
Notifications
You must be signed in to change notification settings - Fork 633
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
popup: close popup on escape press. #6978
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd put the esc handler after the key_event handler (together with the Tab/Backtab handling a few lines down.
Can you please extend the test in https://github.com/slint-ui/slint/blob/master/tests/cases/elements/popupwindow_close_policy.slint to make sure esc close the popup when it should, and doesn't close whan it shouldn't
Co-authored-by: Arnold Loubriat <datatriny@gmail.com>
4c7e0fd
to
08b44dd
Compare
08b44dd
to
e4b124a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, but the test coverage could be improved (see comment)
No description provided.