Skip to content

Commit

Permalink
Probably fixed #9058
Browse files Browse the repository at this point in the history
  • Loading branch information
jushar committed Nov 3, 2015
1 parent a0100b9 commit 65ee957
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions MTA10/mods/deathmatch/logic/CStaticFunctionDefinitions.cpp
Expand Up @@ -6643,8 +6643,7 @@ bool CStaticFunctionDefinitions::GetKeyState ( const char* szKey, bool& bState )
const SBindableKey* pKey = pKeyBinds->GetBindableFromKey ( szKey );
if ( pKey )
{
HWND hActiveWindow = GetActiveWindow ();
if ( hActiveWindow == g_pCore->GetHookedWindow () )
if ( g_pCore->IsFocused () )
{
bState = ( ::GetKeyState ( pKey->ulCode ) & 0x8000 ) ? true:false;

Expand Down

0 comments on commit 65ee957

Please sign in to comment.