Skip to content

Commit 3d980d8

Browse files
committed
w32_common: release all input when entering context menu
1 parent 2b50cec commit 3d980d8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

video/out/w32_common.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1636,6 +1636,9 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam,
16361636
return 0;
16371637
}
16381638
break;
1639+
case WM_ENTERMENULOOP:
1640+
mp_input_put_key(w32->input_ctx, MP_INPUT_RELEASE_ALL);
1641+
break;
16391642
case WM_KILLFOCUS:
16401643
mp_input_put_key(w32->input_ctx, MP_INPUT_RELEASE_ALL);
16411644
w32->focused = false;

0 commit comments

Comments
 (0)