Skip to content

Word (2016 at least) Documents opened in protected view often immediately lose focus #7540

@Qchristensen

Description

@Qchristensen

When opening a document from the downloads folder or an e-mail attachment, Word opens it in Protected mode. Often (but not always), such documents open, but immediately lose focus. When the document opens, instead of identifying Microsoft Word, NVDA reads simply "Protected view".

Pressing the down arrow reads nothing (and does not move focus - pressing many times does not scroll screen either for instance).

Pressing alt twice to move focus to the ribbon and back gives the document focus and it can be read then. I have the "Open e-mail attachments and other uneditable files in reading view" option turned off (press alt+f, then t, then alt+o to toggle, then ENTER to close Word options).

Pressing NVDA+F1 while the document has lost focus shows the following log:

INFO - globalCommands.GlobalCommands.script_navigatorObject_devInfo (11:42:31.451):
Developer info for navigator object:
name: u'In process to publish.docx - Word'
role: ROLE_PANE
states: STATE_FOCUSABLE
isFocusable: True
hasFocus: False
Python object: <NVDAObjects.IAccessible.IAccessible object at 0x07064AB0>
Python class mro: (<class 'NVDAObjects.IAccessible.IAccessible'>, <class 'NVDAObjects.window.Window'>, <class 'NVDAObjects.NVDAObject'>, <class 'baseObject.ScriptableObject'>, <class 'baseObject.AutoPropertyObject'>, <type 'object'>)
description: None
location: (0, -1, 2560, 1295)
value: None
appModule: <'appModuleHandler' (appName u'winword', process ID 5724) at address 7289f50>
appModule.productName: u'Microsoft Office 2016'
appModule.productVersion: u'16.0.8326.2076'
TextInfo: <class 'NVDAObjects.NVDAObjectTextInfo'>
windowHandle: 197116
windowClassName: u'OpusApp'
windowControlID: 0
windowStyle: 399441920
windowThreadID: 844
windowText: u'In process to publish.docx - Word'
displayText: u'In process to publish.docx'
IAccessibleObject: <POINTER(IAccessible) ptr=0xd785400 at 7380d50>
IAccessibleChildID: 0
IAccessible event parameters: windowHandle=197116, objectID=-4, childID=0
IAccessible accName: u'In process to publish.docx - Word'
IAccessible accRole: ROLE_SYSTEM_CLIENT
IAccessible accState: STATE_SYSTEM_FOCUSABLE, STATE_SYSTEM_VALID (1048576)
IAccessible accDescription: None
IAccessible accValue: None

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions