What steps will reproduce the problem?
1. run the attached pyglet_mouse.py
2. while holding down the CTRL key press and release a mouse button, then press
key 'A'
3. Console output shows that all the events receive MOD_ACCEL but not MOD_CTRL
While I understand that MOD_ACCEL is raised if CTRL key is pressed (in windows)
or COMMAND key is pressed (in mac):
The documentation at programming_guide/keyboard_events.html#id265
implies that MOD_CTRL should reach the event handlers
The output of pyglet provided examples\events.py will on the same situation print that MOD_CTRL has been pressed and MOD_ACCEL was not pressed (possibly by checking MOD_ACCEL and platform?)
I think:
In any case, events.py should output the real modifiers, so MOD_ACCEL should be printed if MOD_CTRL is printed
The wording in the mentioned documentation seems to imply that on windows if CTRL key is pressed then both MOD_CTRL and MOD_ACCEL should be set. I'm missreading ? If not, the code is not conforming.
Any additional info (platform/language/hardware) that may be relevant?
windows xp sp3 32bits, python 2.6.5
Both pyglet 1.1.4release and 1.2dev revision 2589:8d20445ae6e2
Original issue reported on code.google.com by ccanepacc@gmail.com on 4 Jul 2011 at 3:52
Original issue reported on code.google.com by
ccanepacc@gmail.com
on 4 Jul 2011 at 3:52Attachments: