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

gdkar/pyglet,Alwnikrotikz/pyglet,google-code-export/pyglet,cledio66/pyglet,shaileshgoogler/pyglet,kmonsoor/pyglet,kmonsoor/pyglet,Austin503/pyglet,mpasternak/michaldtz-fixes-518-522,odyaka341/pyglet,cledio66/pyglet,gdkar/pyglet,cledio66/pyglet,Alwnikrotikz/pyglet,mpasternak/pyglet-fix-issue-552,Austin503/pyglet,cledio66/pyglet,cledio66/pyglet,mpasternak/michaldtz-fixes-518-522,google-code-export/pyglet,odyaka341/pyglet,mpasternak/michaldtz-fix-552,mpasternak/pyglet-fix-issue-552,Austin503/pyglet,qbektrix/pyglet,Alwnikrotikz/pyglet,Austin503/pyglet,mpasternak/pyglet-fix-issue-552,xshotD/pyglet,Alwnikrotikz/pyglet,arifgursel/pyglet,xshotD/pyglet,mpasternak/michaldtz-fix-552,Alwnikrotikz/pyglet,mpasternak/michaldtz-fixes-518-522,xshotD/pyglet,odyaka341/pyglet,qbektrix/pyglet,google-code-export/pyglet,qbektrix/pyglet,mpasternak/pyglet-fix-issue-552,shaileshgoogler/pyglet,arifgursel/pyglet,google-code-export/pyglet,shaileshgoogler/pyglet,google-code-export/pyglet,xshotD/pyglet,mpasternak/pyglet-fix-issue-518-522,arifgursel/pyglet,kmonsoor/pyglet,gdkar/pyglet,shaileshgoogler/pyglet,qbektrix/pyglet,qbektrix/pyglet,mpasternak/pyglet-fix-issue-518-522,mpasternak/michaldtz-fix-552,xshotD/pyglet,mpasternak/michaldtz-fixes-518-522,mpasternak/michaldtz-fix-552,gdkar/pyglet,odyaka341/pyglet,arifgursel/pyglet,Austin503/pyglet,mpasternak/pyglet-fix-issue-518-522,gdkar/pyglet,shaileshgoogler/pyglet,kmonsoor/pyglet,kmonsoor/pyglet,arifgursel/pyglet,mpasternak/pyglet-fix-issue-518-522,odyaka341/pyglet