From: Pierre Ossman Date: Wed, 4 Jan 2023 19:36:26 +0000 (+0100) Subject: Add missing breaks to Windows key grab code X-Git-Tag: v1.13.90~97^2~12 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=eb684b9979230bdff3ede1bba7437f839e8cf0bf;p=tigervnc.git 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. --- 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; }