adding check for syskeydown on control and alt

This commit is contained in:
unknown 2020-06-09 20:22:57 -07:00
parent 23a2b4ab7d
commit d191a8b9f8

View file

@ -2536,9 +2536,9 @@ LRESULT DisplayServerWindows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
case WM_KEYUP: case WM_KEYUP:
case WM_KEYDOWN: { case WM_KEYDOWN: {
if (wParam == VK_SHIFT) if (wParam == VK_SHIFT)
shift_mem = uMsg == WM_KEYDOWN; shift_mem = (uMsg == WM_KEYDOWN || uMsg == WM_SYSKEYDOWN);
if (wParam == VK_CONTROL) if (wParam == VK_CONTROL)
control_mem = uMsg == WM_KEYDOWN; control_mem = (uMsg == WM_KEYDOWN || uMsg == WM_SYSKEYDOWN);
if (wParam == VK_MENU) { if (wParam == VK_MENU) {
alt_mem = (uMsg == WM_KEYDOWN || uMsg == WM_SYSKEYDOWN); alt_mem = (uMsg == WM_KEYDOWN || uMsg == WM_SYSKEYDOWN);
if (lParam & (1 << 24)) if (lParam & (1 << 24))