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 ED_IS_SHORTCUT macro instead of matches_event #88547

Merged
merged 1 commit into from
Feb 19, 2024

Conversation

CookieBadger
Copy link
Contributor

As was pointed out to me, ED_IS_SHORTCUT("<shortcut>", p_event) is preferred over ED_GET_SHORTCUT("<shortcut>")->matches_event(p_event), so this PR changes this in all the occurrences that I could find, particularly in the AnimationEditor and in the CanvasItemEditor.

Copy link
Contributor

@Mickeon Mickeon left a comment

Choose a reason for hiding this comment

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

Checked what the MACROs expand to. This is cool and good.

@akien-mga akien-mga modified the milestones: 4.x, 4.3 Feb 19, 2024
@akien-mga akien-mga merged commit 37cca2b into godotengine:master Feb 19, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@CookieBadger CookieBadger deleted the ed-is-shortcut-macro branch February 19, 2024 20:58
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