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

win32: Don't raise TextInput event when KeyDown was handled (Attempt #2) #7374

Merged
merged 2 commits into from
Jan 18, 2022

Conversation

grokys
Copy link
Member

@grokys grokys commented Jan 17, 2022

What does the pull request do?

On win32, returning handled from WM_KEYDOWN doesn't automatically prevent a WM_CHAR message, resulting in #5849.

Fix this by setting a flag after WM_KEYDOWN is handled which will make the following WM_CHAR message be ignored.

This is the second attempt at fixing this after it was decided that #7351 was not the right approach.

Fixed issues

Fixes #5849

On win32, returning handled from `WM_KEYDOWN` doesn't automatically prevent a `WM_CHAR` message, resulting in #5849.

Fix this by setting a flag after `WM_KEYDOWN` is handled which will make the following `WM_CHAR` message be ignored.

This is the second attempt at fixing this after it was decided that #7351 was not the right approach.

Fixes #5849
@danwalmsley danwalmsley merged commit 38f726f into master Jan 18, 2022
@danwalmsley danwalmsley deleted the fixes/5849-textinput-keydown-handed-2 branch January 18, 2022 14:23
danwalmsley added a commit that referenced this pull request Jan 24, 2022
…-handed-2

win32: Don't raise TextInput event when KeyDown was handled (Attempt #2)
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.

Handling KeyDown events does not prevent TextInput events
3 participants