Fix alt tab issue on win32

This commit is contained in:
Eduardo Bart 2012-07-13 00:56:56 -03:00
parent 9bfd2617e9
commit 29ab28065b
1 changed files with 2 additions and 0 deletions

View File

@ -570,6 +570,8 @@ LRESULT WIN32Window::windowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPar
}
case WM_ACTIVATE: {
m_focused = !(wParam == WA_INACTIVE);
if(!m_focused)
releaseAllKeys();
break;
}
case WM_CHAR: {