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

Fix stuck internal macOS modifier keys #16788

Merged
merged 2 commits into from
Sep 12, 2024

Conversation

MrJul
Copy link
Member

@MrJul MrJul commented Aug 23, 2024

What does the pull request do?

This PR fixes the internal state of modifier keys that were getting stuck on macOS if the window lost the focus while a key was pressed. (Consequently, pressing the same modifier key again was ignored the first time.)

How was the solution implemented (if it's not obvious)?

Internal modifiers are synchronized back when the window gets the focus.

@MrJul MrJul added bug os-macos customer-priority Issue reported by a customer with a support agreement. labels Aug 23, 2024
@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.2.999-cibuild0051449-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@grokys grokys enabled auto-merge August 26, 2024 18:48
@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.2.999-cibuild0051495-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@maxkatz6 maxkatz6 merged commit a31ff27 into AvaloniaUI:master Sep 12, 2024
8 of 10 checks passed
@MrJul MrJul deleted the fixes/macos-stuck-modifier-keys branch September 19, 2024 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug customer-priority Issue reported by a customer with a support agreement. os-macos
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants