Skip to content

Commit

Permalink
MSHTML.Body NVDAObject: Override shouldAllowIAccessibleFocusEvent pro…
Browse files Browse the repository at this point in the history
…perty to call the property on the MSAAHTML Registered Handler client after checking the focused state on itself. This is because we override parent to skip this client, but this client might have the focused state, even if the document doesn't for some reason. This might improve the situation in #657.
  • Loading branch information
jcsteh committed Jun 17, 2010
1 parent 2f234a6 commit 5cbec63
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions source/NVDAObjects/IAccessible/MSHTML.py
Expand Up @@ -649,6 +649,13 @@ def _get_parent(self):
else:
return parent

def _get_shouldAllowIAccessibleFocusEvent(self):
# We must override this because we override parent to skip the MSAAHTML Registered Handler client,
# which might have the focused state.
if controlTypes.STATE_FOCUSED in self.states:
return True
return super(Body, self).parent.shouldAllowIAccessibleFocusEvent

class Object(MSHTML):

def _get_firstChild(self):
Expand Down

0 comments on commit 5cbec63

Please sign in to comment.