Changeset 148

Show
Ignore:
Timestamp:
06/30/08 18:30:11
Author:
slee
Message:

fixed ff 3 web doc, bug #9

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/atspi.py

    r97 r148  
    4040  idle_add(printEvent) 
    4141 
     42def _onKeyDown(event): 
     43        print event; 
     44         
    4245EVENTS = ('document', 'focus', 'object', 'window', 'terminal') 
    4346pyatspi.Registry.registerEventListener(eventCallback, *EVENTS) 
     47 
     48masks = [mask for mask in pyatspi.allModifiers()] 
     49pyatspi.Registry.registerKeystrokeListener( 
     50        _onKeyDown, 
     51        mask = None, 
     52        kind=(pyatspi.KEY_PRESSED_EVENT,)) 
     53 
    4454 
    4555try: 
  • trunk/src/jambu/ActionModel.py

    r129 r148  
    9898 
    9999  def _isInteractive(self, acc): 
    100     if acc.hasRoleIn(pyatspi.ROLE_SEPARATOR) \ 
     100    if acc.hasRoleIn(pyatspi.ROLE_SEPARATOR, pyatspi.ROLE_INTERNAL_FRAME) \ 
    101101      or ((acc.hasRoleIn(pyatspi.ROLE_MENU) and acc.parent.getRole() == pyatspi.ROLE_COMBO_BOX)) \ 
    102102       or not acc.hasStates(pyatspi.STATE_SHOWING, pyatspi.STATE_VISIBLE, pyatspi.STATE_SENSITIVE): 
  • trunk/src/jambu/InAppSelection.py

    r126 r148  
    110110            pass  # not expected 
    111111      PumpQueuedEvents(pyatspi.Registry()) 
     112        #pyatspi.Registry.pumpQueuedEvents(); # should be ok now but stops menues working 
    112113      return True   # keep this function in idle processing 
    113114    gobject.idle_add(_onIdle)