UIEvents do not have shiftKey/etc #771

Open
anthonyrisinger opened this Issue Aug 5, 2012 · 0 comments

Comments

Projects
None yet
1 participant
@anthonyrisinger
Member

anthonyrisinger commented Aug 5, 2012

UIEvents are triggered on DOM focus in/out, but are not mouse events (MouseEvent is a subclass of UIEvent) as the can be triggered other ways, eg. by tabbing thru anchors.

http://www.w3.org/TR/2001/WD-DOM-Level-3-Events-20010823/events.html#Events-UIEvent

Traceback (most recent call last):
  File "/home/anthony/devel/upstream/pyjs/pyjd/giwebkit.py", line 129, in _callback
    return self.cb(self.sender, event, self.boolparam)
  File "/home/anthony/devel/upstream/pyjs/library/pyjamas/DOM.py", line 141, in _dispatchEvent
    dispatchEvent(evt, curElem, listener)
  File "/home/anthony/devel/upstream/pyjs/library/pyjamas/DOM.py", line 990, in dispatchEvent
    dispatchEventImpl(event, element, listener)
  File "/home/anthony/devel/upstream/pyjs/library/pyjamas/DOM.py", line 1027, in dispatchEventImpl
    listener.onBrowserEvent(event)
  File "/home/anthony/devel/upstream/pyjs/library/pyjamas/ui/Widget.py", line 71, in onBrowserEvent
    KeyboardHandler.onBrowserEvent(self, event)
  File "/home/anthony/devel/upstream/pyjs/library/pyjamas/ui/KeyboardListener.py", line 104, in onBrowserEvent
    fireKeyboardEvent(self._keyboardListeners, self, event)
  File "/home/anthony/devel/upstream/pyjs/library/pyjamas/ui/KeyboardListener.py", line 77, in fireKeyboardEvent
    modifiers = getKeyboardModifiers(event)
  File "/home/anthony/devel/upstream/pyjs/library/pyjamas/ui/KeyboardListener.py", line 64, in getKeyboardModifiers
    if DOM.eventGetShiftKey(event):
  File "/home/anthony/devel/upstream/pyjs/library/pyjamas/DOM.py", line 403, in eventGetShiftKey
    return evt.shiftKey
  File "/home/anthony/devel/upstream/pyjs/pyjd/giwebkit.py", line 86, in __getattr__
    raise AttributeError(w3c_name)
AttributeError: shiftKey

@ghost ghost assigned anthonyrisinger Aug 5, 2012

anthonyrisinger pushed a commit to anthonyrisinger/pyjs that referenced this issue Aug 30, 2012

C Anthony Risinger
[issue #771] Remove deprecated addition to sys.path
Pywebgtk hasn't worked for well over 2 years, remove unecessary modification to `sys.path`.

anthonyrisinger pushed a commit to anthonyrisinger/pyjs that referenced this issue Aug 30, 2012

C Anthony Risinger
[issue #771] Remove deprecated addition to sys.path
Pywebgtk hasn't worked for well over 2 years, remove unecessary modification to `sys.path`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment