From eb684b9979230bdff3ede1bba7437f839e8cf0bf Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Wed, 4 Jan 2023 20:36:26 +0100 Subject: [PATCH] Add missing breaks to Windows key grab code These were not meant to fall through. Likely didn't have any adverse effects, but let's fix it anyway. --- vncviewer/win32.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vncviewer/win32.c b/vncviewer/win32.c index c4a68b67..e51acca3 100644 --- a/vncviewer/win32.c +++ b/vncviewer/win32.c @@ -59,11 +59,13 @@ static int is_system_hotkey(int vkCode) { case VK_TAB: if (GetAsyncKeyState(VK_MENU) & 0x8000) return 1; + break; case VK_ESCAPE: if (GetAsyncKeyState(VK_MENU) & 0x8000) return 1; if (GetAsyncKeyState(VK_CONTROL) & 0x8000) return 1; + break; } return 0; } -- 2.39.5