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

Dismiss currently visible or upcoming tooltips when pressing Escape #80364

Merged

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Aug 7, 2023

This is standard UI behavior in most applications out there.

Preview

The editor inspector's documentation tooltips already have a special case for being dismissable, but prior to this PR, the node would always be deselected when pressing Escape while a tooltip is visible.

simplescreenrecorder-2023-08-07_10.50.20.mp4

Copy link
Contributor

@Sauermann Sauermann left a comment

Choose a reason for hiding this comment

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

Have tested the PR and is solves the described problem for me.

I agree with the design to not set the event as handled, when the timer is active and the tooltip is not yet shown.

Please move the whole block a bit down after the drag-cancelling section, so that drag-cancelling takes precedence over tooltip-cancelling.

This is standard UI behavior in most applications out there.
@Calinou Calinou force-pushed the control-escape-dismiss-tooltips branch from 3a15f75 to 6307b0b Compare August 8, 2023 06:41
@Calinou
Copy link
Member Author

Calinou commented Aug 8, 2023

Please move the whole block a bit down after the drag-cancelling section, so that drag-cancelling takes precedence over tooltip-cancelling.

Done 🙂

I've tested the changes and it still works as expected.

@akien-mga akien-mga modified the milestones: 4.x, 4.2 Aug 8, 2023
@akien-mga akien-mga merged commit 46c9a14 into godotengine:master Aug 8, 2023
15 checks passed
@akien-mga
Copy link
Member

Thanks!

@Calinou Calinou deleted the control-escape-dismiss-tooltips branch August 16, 2023 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants