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 clear modifier state on focus change #4157

Merged
merged 1 commit into from
Mar 20, 2024

Conversation

ming08108
Copy link
Contributor

I believe that the underlying issue that caused the stuck modifier keys was resolved in the 0.29 winit keyboard refactor.

This probably needs to tested on other desktop platforms however since I am only able to test this on windows 11.

@emilk emilk added eframe Relates to epi and eframe egui-winit porblems related to winit egui labels Mar 20, 2024
@emilk
Copy link
Owner

emilk commented Mar 20, 2024

Let's try it and see if we regress :)

Do you have a link for the winit-side fix for posterity?

@emilk emilk merged commit 8d47ab8 into emilk:master Mar 20, 2024
21 of 22 checks passed
hacknus pushed a commit to hacknus/egui that referenced this pull request Oct 30, 2024
I believe that the underlying issue that caused the stuck modifier keys
was resolved in the 0.29 winit keyboard refactor.

This probably needs to tested on other desktop platforms however since I
am only able to test this on windows 11.

* Closes <emilk#2332>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
eframe Relates to epi and eframe egui egui-winit porblems related to winit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Modifier keys being held when a window loses and regains focus aren't detected by InputState::consume_key
2 participants