Browse Source

Disable system bell sounds from Alt key combinations.

Lasse Öörni 10 years ago
parent
commit
9dae13c4ab
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Source/ThirdParty/SDL/src/video/windows/SDL_windowsevents.c

+ 3 - 0
Source/ThirdParty/SDL/src/video/windows/SDL_windowsevents.c

@@ -783,6 +783,9 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
                     return (0);
                     return (0);
                 }
                 }
             }
             }
+            // Urho3D: prevent alert bell sounds from Alt key combinations
+            if ((wParam & 0xFFF0) == SC_KEYMENU)
+                returnCode = 1;
         }
         }
         break;
         break;
 #endif /* System has screensaver support */
 #endif /* System has screensaver support */