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 WindowManager.IsFocused() method on Windows #461

Merged
merged 1 commit into from
May 18, 2024

Conversation

strixcode
Copy link
Contributor

WindowManager::IsFocused() uses GetActiveWindow() which returns active window of the current application. It doesn't mean that this application is in foreground and has keyboard focus. The correct way is to use GetForegroundWindow() which this PR does.

@lijy91 lijy91 merged commit e077e8e into leanflutter:main May 18, 2024
3 of 6 checks passed
@iOSBoy
Copy link

iOSBoy commented May 23, 2024

Hi strixcode thank you for fix this bug, but i am use the latest version of this plugin when i get isFocused is still false. what should i do next,please help me

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.

None yet

3 participants