Skip to content

Don't clear modifier state on focus change - #4157

Merged
emilk merged 1 commit into
emilk:masterfrom
ming08108:dont_clear_modifiers
Mar 20, 2024
Merged

emilk merged 1 commit into
emilk:masterfrom
ming08108:dont_clear_modifiers

Conversation

@ming08108

Copy link
Copy Markdown
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

emilk commented Mar 20, 2024

Copy link
Copy Markdown
Owner

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
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