Skip to content

Commit

Permalink
MSHTML virtualBuffer: dialogs embedded in a browseMode document now g…
Browse files Browse the repository at this point in the history
…et browseMode by default themselves.
  • Loading branch information
michaelDCurran committed Aug 1, 2017
1 parent 6960f54 commit eda678b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/virtualBuffers/MSHTML.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ class MSHTML(VirtualBuffer):
def __init__(self,rootNVDAObject):
super(MSHTML,self).__init__(rootNVDAObject,backendName="mshtml")
# As virtualBuffers must be created at all times for MSHTML to support live regions,
# Force focus mode for anything other than a document (e.g. dialog, application)
if rootNVDAObject.role!=controlTypes.ROLE_DOCUMENT:
# Force focus mode for applications, and dialogs with no parent treeInterceptor (E.g. a dialog embedded in an application)
if rootNVDAObject.role==controlTypes.ROLE_APPLICATION or (rootNVDAObject.role==controlTypes.ROLE_DIALOG and (not rootNVDAObject.parent or not rootNVDAObject.parent.treeInterceptor or rootNVDAObject.parent.treeInterceptor.passThrough)):
self.disableAutoPassThrough=True
self.passThrough=True

Expand Down

0 comments on commit eda678b

Please sign in to comment.