check context code and previous key state on WM_SYSKEYDOWN
This commit is contained in:
parent
a50ab60c89
commit
c6ad63e837
1 changed files with 4 additions and 1 deletions
|
@ -1474,7 +1474,10 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||||
}
|
}
|
||||||
case WM_SYSKEYDOWN:
|
case WM_SYSKEYDOWN:
|
||||||
{
|
{
|
||||||
if (wParam == VK_RETURN)
|
BOOL contextCode = (lParam & (1 << 29)) != 0;
|
||||||
|
BOOL keyState = (lParam & (1 << 30)) != 0;
|
||||||
|
|
||||||
|
if (wParam == VK_RETURN && contextCode && !keyState)
|
||||||
{
|
{
|
||||||
ToggleFullscreen();
|
ToggleFullscreen();
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue