Skip to content

Conversation

@narodnik
Copy link
Contributor

we need to clear the mods otherwise they can be released outside the window's focus and stay on when the window is refocused.

btw when you get a chance, please approve issue #517, ty!

jkds and others added 3 commits January 20, 2025 11:26
…fixes the issue when you are type a key command to leave a window like ALT+tab. The window will receive just ALT and it will remain stuck after you refocus.
@not-fl3 not-fl3 merged commit 782ab83 into not-fl3:master Jan 26, 2025
10 checks passed
@not-fl3
Copy link
Owner

not-fl3 commented Jan 26, 2025

Thanks!

@profan
Copy link

profan commented Feb 9, 2025

has this only fixed this under the wayland backend and only on linux, or was this a wayland-only problem?

i'm pretty sure there's this exact issue but for macroquad, which is likely just originating in miniquad: not-fl3/macroquad#547

happens on windows as well, clearing the mods when exiting the focused window also doesn't seem quite correct, other libraries like SDL2 or the like properly handle releasing keys when you've moused off the window, so this feels and looks like a little bit of a bandaid fix that will not actually fix the problem?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants