mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 20:23:53 +00:00
Merge pull request #39427 from hcmlax/shortcut_issue_39351
fixed issue where shortcut doesn't work if alt is pressed before shift
This commit is contained in:
commit
3e07080942
@ -2565,9 +2565,9 @@ LRESULT DisplayServerWindows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
|
||||
case WM_KEYUP:
|
||||
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))
|
||||
|
Loading…
Reference in New Issue
Block a user