Detect ALT modifier on mouse events on Win32.
Detect ALT modifier on mouse events on Win32.

Index: window/win32/__init__.py
===================================================================
--- window/win32/__init__.py	(revision 789)
+++ window/win32/__init__.py	(working copy)
@@ -634,7 +634,10 @@
             modifiers |= key.MOD_CAPSLOCK
         if _user32.GetKeyState(VK_NUMLOCK) & 0x00ff:    # toggle
             modifiers |= key.MOD_NUMLOCK
-        if key_lParam & (1 << 29):
+        if key_lParam:
+            if key_lParam & (1 << 29):
+                modifiers |= key.MOD_ALT
+        elif _user32.GetKeyState(VK_MENU) < 0:
             modifiers |= key.MOD_ALT
         return modifiers
 



git-svn-id: d4fdfcd4de20a449196f78acc655f735742cd30d@790 14d46d22-621c-0410-bb3d-6f67920f7d95

regular/pyglet-avbin-optimizations,regular/pyglet-avbin-optimizations,regular/pyglet-avbin-optimizations,regular/pyglet-avbin-optimizations