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

Fix Gridmap shortcut conflicts with 3d editor #99170

Conversation

Nodragem
Copy link
Contributor

@Nodragem Nodragem commented Nov 13, 2024

Fix the issue mentioned in my recent PR where the user has set "S" to "begin scale transformation":
#96922 (comment)

It was due to the action shortcuts not going through the right processing.

Now the action shorcuts (A,S,D,Z,X,C) are going through the right processing and their events are captured so they are not passed to the 3D editor. This avoids conflicts/weird behaviours if the users has set up shortcuts on these keys.

Note: if that is of interest for anyone, I first added these actions in the right processing route, but I had problems with 180 degrees rotations (i.e. buttons being pressed twice). It seems that this problem is solved since I use accept_event to stop the event processing.

Now the action shorcuts (A,S,D,Z,X,C) are going through the right processing and their events are captured so they are not passed to the 3D editor. This avoids conflicts/weird behaviours if the users has set up shortcuts on these keys.
@Nodragem Nodragem requested a review from a team as a code owner November 13, 2024 11:57
@geowarin
Copy link
Contributor

This fixes the issue for me. Great job! 😄

@akien-mga akien-mga added this to the 4.4 milestone Nov 13, 2024
@Repiteo Repiteo merged commit ad97ef8 into godotengine:master Nov 13, 2024
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Nov 13, 2024

Thanks!

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.

4 participants