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

Don't handle property_editor shortcuts on release. #52376

Merged
merged 1 commit into from
Sep 16, 2021

Conversation

rcorre
Copy link
Contributor

@rcorre rcorre commented Sep 3, 2021

Fixes #52336.

EditorProperty::unhandled_key_input was handling both press and release.
This means that if you press ctrl+v on an EditorProperty line input,
it will paste as expected on pressing ctrl+v, and accept the event so
EditorProperty will not see it. However, on release, LineEdit ignores
the event and EditorProperty still catches and handles it, using its own
paste implementation.

Fixes godotengine#52336.

EditorProperty::unhandled_key_input was handling both press and release.
This means that if you press `ctrl+v` on an EditorProperty line input,
it will paste as expected on pressing `ctrl+v`, and accept the event so
EditorProperty will not see it. However, on release, LineEdit ignores
the event and EditorProperty still catches and handles it, using its own
paste implementation.
@akien-mga akien-mga merged commit eca594d into godotengine:master Sep 16, 2021
@akien-mga
Copy link
Member

Thanks!

@rcorre rcorre deleted the prop_path_copy_fix branch December 25, 2021 17:20
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.

External editor exec flags can't be set
3 participants