Skip to content

NVDA is enforced to use UIA whenever focussing a MS Word document or MS Outlook message Window although this is explicitly turned to "only when necessary" in NVDA advanced settings #18346

@Adriani90

Description

@Adriani90

Steps to reproduce:

  1. Open NVDA
  2. In Advaced settings, set uIA for MS Word to "only when necessary"
  3. Open an mS Word document or a message window in MS Outlook
  4. Add some blank lines and Create a table with some rows and columns
  5. Fill some cells with content so the test results become obvious later on
  6. Press alt+tab twice to change to another window and back to the Outlook message window or MS Word document
  7. Press ctrl+up and down arrow to navigate to the table
  8. Press nvda+n to open NVDA menu, and then press escape. Alternatively, just ofpen the ribbon with alt and press escape to close it.
    9.1. Repeat step 7
    9.2. After pressing escape to close NVDA menu or the ribbon, press alt+tab

Actual behavior:

  • In step 7, NVDA reads the whole table on ctrl+down arrow, this is the behavior when UIA is enabled. And there are lots of other undesired effects stemming from UIA.
  • In step 9.1, NVDA reads only the focussed cell and its content, this is the behavior when UIA is set to "only necessary".
  • In step 9.2, when in an outlook message window, NVDA does not change to another window but tries to get focus back to Outlook although the focus is already there. In the log it seems NVDA has huge amount of events after pressing alt+tab, Windows explorer and XAML chime in unexpectedly and NVDA fails to convert foregroung window.

This back and forth with UIA happens every time when changing between windows with alt+tab, and I must always open and close NVDA menu in order to make it work as expected.

Expected behavior:

UIA setting in advanced settings of NVDA should be respected, and there should not be so many focus event when pressing alt+tab after step 8. NVDA should be able to convert the foreground window as expected because it should not use UIA.

NVDA logs, crash dumps and other attachments:

nvda_UIA-enforcement.txt

System configuration

NVDA installed/portable/running from source:

Installed

NVDA version:

Version: alpha-36938,7776fcOO (2025.2.0.36938)

Windows version:

Windows 11 24 H2

Name and version of other software in use when reproducing the issue:

Microsoft Office 365 version 2505 build 16.0.18827.20102) 64 Bit

Other information about your system:

Other questions

Does the issue still occur after restarting your computer?

yes

Have you tried any other versions of NVDA? If so, please report their behaviors.

earlier versions did not have this behavior, but it could have started with an MS office update.

If NVDA add-ons are disabled, is your problem still occurring?

no add-ons in use

Does the issue still occur after you run the COM Registration Fixing Tool in NVDA's tools menu?

yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/microsoft-officecomponent/UIA-ms-officeSpecific to UIA used in MS office applications.p2https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#prioritytriagedHas been triaged, issue is waiting for implementation.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions