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

Prevent unintended keyboard input during focus. #2649

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

kosayoda
Copy link
Contributor

winit generates is_synthetic: true KeyboardInput events whenever a window gains or loses focus, which is mistakenly picked up as a intentional input event.

Fixes #2621.

Prior Art

@hecrj hecrj added this to the 0.14 milestone Oct 25, 2024
@hecrj hecrj added bug Something isn't working shell fix labels Oct 25, 2024
Copy link
Member

@hecrj hecrj left a comment

Choose a reason for hiding this comment

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

Great! Thought this was going to need us to juggle focus state.

Thank you.

@hecrj hecrj enabled auto-merge October 25, 2024 12:34
@hecrj hecrj merged commit d660fad into iced-rs:master Oct 25, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fix shell
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unintended input when text editor gains focus
2 participants