Skip to content

Commit

Permalink
adding check for syskeydown on control and alt
Browse files Browse the repository at this point in the history
(cherry picked from commit d191a8b)
  • Loading branch information
hcmlax authored and h committed Nov 10, 2020
1 parent b6e7e82 commit 1c47307
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions platform/windows/os_windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1091,9 +1091,9 @@ LRESULT OS_Windows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
case WM_KEYDOWN: {

if (wParam == VK_SHIFT)
shift_mem = uMsg == WM_KEYDOWN;
shift_mem = (uMsg == WM_KEYDOWN || uMsg == WM_SYSKEYDOWN);
if (wParam == VK_CONTROL)
control_mem = uMsg == WM_KEYDOWN;
control_mem = (uMsg == WM_KEYDOWN || uMsg == WM_SYSKEYDOWN);
if (wParam == VK_MENU) {
alt_mem = (uMsg == WM_KEYDOWN || uMsg == WM_SYSKEYDOWN);
if (lParam & (1 << 24))
Expand Down

0 comments on commit 1c47307

Please sign in to comment.