From eda678ba4ea957036ea0ead658549a684c190ec9 Mon Sep 17 00:00:00 2001 From: Michael Curran Date: Tue, 1 Aug 2017 13:08:54 +1000 Subject: [PATCH] MSHTML virtualBuffer: dialogs embedded in a browseMode document now get browseMode by default themselves. --- source/virtualBuffers/MSHTML.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/virtualBuffers/MSHTML.py b/source/virtualBuffers/MSHTML.py index 686407c81c5..2af4ffb89c6 100644 --- a/source/virtualBuffers/MSHTML.py +++ b/source/virtualBuffers/MSHTML.py @@ -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