src/video/windows/SDL_windowsevents.c
changeset 7646 42c3b0c24c6c
parent 7645 cc775832d501
child 7647 832a72fc1c94
--- a/src/video/windows/SDL_windowsevents.c	Fri Aug 16 15:35:10 2013 -0700
+++ b/src/video/windows/SDL_windowsevents.c	Fri Aug 16 15:38:06 2013 -0700
@@ -487,7 +487,14 @@
 #endif /* WM_MOUSELEAVE */
 
     case WM_KEYDOWN:
+    case WM_SYSKEYDOWN:
         {
+            SDL_Scancode code = WindowsScanCodeToSDLScanCode( lParam, wParam );
+            if ( code != SDL_SCANCODE_UNKNOWN ) {
+                SDL_SendKeyboardKey(SDL_PRESSED, code );
+            }
+        }
+        if (msg == WM_KEYDOWN) {
             BYTE keyboardState[256];
             char text[5];
             UINT32 utf32 = 0;
@@ -501,14 +508,6 @@
                 }
             }
         }
-        // no break
-    case WM_SYSKEYDOWN:
-        {
-            SDL_Scancode code = WindowsScanCodeToSDLScanCode( lParam, wParam );
-            if ( code != SDL_SCANCODE_UNKNOWN ) {
-                SDL_SendKeyboardKey(SDL_PRESSED, code );
-            }
-        }
         returnCode = 0;
         break;