Skip to content

Commit 89c42fd

Browse files
authored
Merge e86ba5e into f47dd5c
2 parents f47dd5c + e86ba5e commit 89c42fd

4 files changed

Lines changed: 13 additions & 3 deletions

File tree

source/UIAHandler/utils.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import ctypes
1010
import UIAHandler
1111
import weakref
12+
import winVersion
1213
from functools import lru_cache
1314
from logHandler import log
1415
from .constants import WinConsoleAPILevel
@@ -355,4 +356,9 @@ def _getConhostAPILevel(hwnd: int) -> WinConsoleAPILevel:
355356
def _shouldSelectivelyRegister() -> bool:
356357
"Determines whether to register for UIA events selectively or globally."
357358
setting = config.conf['UIA']['eventRegistration']
358-
return setting == "selective"
359+
if setting == "selective":
360+
return True
361+
elif setting == "global":
362+
return False
363+
else:
364+
return winVersion.getWinVer() >= winVersion.WIN11_22H2

source/gui/settingsDialogs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2662,7 +2662,7 @@ def __init__(self, parent):
26622662
# Translators: A choice in a combo box in the advanced settings
26632663
# panel to have NVDA decide whether to register
26642664
# selectively or globally for UI Automation events.
2665-
_("Automatic (globally)"),
2665+
_("Automatic (prefer selectively)"),
26662666
# Translators: A choice in a combo box in the advanced settings
26672667
# panel to have NVDA register selectively for UI Automation events
26682668
# (i.e. not to request events for objects outside immediate focus).

user_docs/en/changes.t2t

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ What's New in NVDA
2222
- NVDA will now correctly announce Group boxes in Java applications. (#13962)
2323
- Caret properly follows spoken text in say all in applications such as Bookworm, WordPad, or the NVDA log viewer. (#13420, #9179)
2424
- In programs using UI Automation, partially checked checkboxes will be reported correctly. (#13975)
25+
- Improved performance and stability in in Microsoft Visual Studio, Windows Terminal, and other UI Automation based applications. (#11077, #11209)
26+
- These fixes apply to Windows 11 Sun Valley 2 (version 22H2) and later.
27+
- Selective registration for UI Automation events and property changes now enabled by default.
28+
-
2529
-
2630

2731

user_docs/en/userGuide.t2t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2122,7 +2122,7 @@ This button is only enabled if NVDA is configured to enable loading custom code
21222122

21232123
This option changes how NVDA registers for events fired by the Microsoft UI Automation accessibility API.
21242124
The registration for UI Automation events and property changes combo box has three options:
2125-
- Automatic: Currently equivalent to "globally".
2125+
- Automatic: "selectively" on Windows 11 Sun Valley 2 (version 22H2) and later, "globally" otherwise.
21262126
- Selectively: NVDA will limit event registration to the system focus for most events.
21272127
If you suffer from performance issues in one or more applications, We recommend you to try this functionality to see whether performance improves.
21282128
However, on older versions of Windows, NVDA may have trouble tracking focus in some controls (such as the task manager and emoji panel).

0 commit comments

Comments
 (0)