Thanks, this is in trunk now. Alex.
John Lehmann wrote: > I have noticed a few times ... when you press a modifier key... local > variable key shadows import key: > > $ svn diff window/carbon/__init__.py > Index: window/carbon/__init__.py > =================================================================== > --- window/carbon/__init__.py (revision 767) > +++ window/carbon/__init__.py (working copy) > @@ -799,7 +799,7 @@ > byref(modifiers)) > modifiers = modifiers.value > deltas = modifiers ^ self._current_modifiers > - for mask, key in [ > + for mask, k in [ > (controlKey, key.LCTRL), > (shiftKey, key.LSHIFT), > (cmdKey, key.LCOMMAND), > @@ -812,10 +812,10 @@ > if deltas & mask: > if modifiers & mask: > self.dispatch_event(EVENT_KEY_PRESS, > - key, self._mapped_modifiers) > + k, self._mapped_modifiers) > else: > self.dispatch_event(EVENT_KEY_RELEASE, > - key, self._mapped_modifiers) > + k, self._mapped_modifiers) > carbon.CallNextEventHandler(next_handler, event) > > Regards, > > John > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en -~----------~----~----~----~------~----~------~--~---
