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

Cancel DragValue edit if Escape is pressed #4713

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

YgorSouza
Copy link
Contributor

Since Escape takes focus away from the text field, it makes more sense for it to cancel the change rather than confirm it.

This only matters if update_while_editing is set to false, of course.

Since Escape takes focus away from the text field, it makes more sense
for it to cancel the change rather than confirm it.
Copy link
Owner

@emilk emilk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@emilk emilk added the egui label Jun 27, 2024
@emilk emilk merged commit ab86157 into emilk:master Jun 27, 2024
19 of 20 checks passed
hacknus pushed a commit to hacknus/egui that referenced this pull request Oct 30, 2024
Since Escape takes focus away from the text field, it makes more sense
for it to cancel the change rather than confirm it.

This only matters if `update_while_editing` is set to false, of course.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants