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.
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
WindowManager::IsFocused()
usesGetActiveWindow()
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 useGetForegroundWindow()
which this PR does.