Browse Source

windows: Fix Print Screen key capture during keyboard grab

(cherry picked from commit 5f92aac09586b2566bf4b62dc49323bfd7d049e6)
Cameron Gutman 15 hours ago
parent
commit
5ee57a9da1
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/video/windows/SDL_windowsevents.c

+ 3 - 0
src/video/windows/SDL_windowsevents.c

@@ -497,6 +497,9 @@ WIN_KeyboardHookProc(int nCode, WPARAM wParam, LPARAM lParam)
     case VK_RCONTROL:
         scanCode = SDL_SCANCODE_RCTRL;
         break;
+    case VK_SNAPSHOT:
+        scanCode = SDL_SCANCODE_PRINTSCREEN;
+        break;
 
     // These are required to intercept Alt+Tab and Alt+Esc on Windows 7
     case VK_TAB: