]> source.dussan.org Git - tigervnc.git/commitdiff
Add missing breaks to Windows key grab code
authorPierre Ossman <ossman@cendio.se>
Wed, 4 Jan 2023 19:36:26 +0000 (20:36 +0100)
committerPierre Ossman <ossman@cendio.se>
Wed, 4 Jan 2023 19:45:46 +0000 (20:45 +0100)
These were not meant to fall through. Likely didn't have any adverse
effects, but let's fix it anyway.

vncviewer/win32.c

index c4a68b67610aca35a1580b72230b2f397de9e3e0..e51acca333e3994b722a1a0c84fbc28068c5e734 100644 (file)
@@ -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;
 }