diff --git a/source/appModules/windowsinternal_composableshell_experiences_textinput_inputapp.py b/source/appModules/windowsinternal_composableshell_experiences_textinput_inputapp.py index 64ecc677dea..2c07b4b55c7 100644 --- a/source/appModules/windowsinternal_composableshell_experiences_textinput_inputapp.py +++ b/source/appModules/windowsinternal_composableshell_experiences_textinput_inputapp.py @@ -430,3 +430,14 @@ def chooseNVDAObjectOverlayClasses(self, obj, clsList): elif obj.UIAAutomationId == "Windows.Shell.InputApp.FloatingSuggestionUI.DelegationTextBox": clsList.remove(EditableTextWithAutoSelectDetection) clsList.remove(XamlEditableText) + + def event_NVDAObject_init(self, obj: NVDAObject) -> None: + # #17308: recent Windows 11 builds raise live region change event when clipboard history closes, + # causing NVDA to report data item text such as clipboard history entries. + # Therefore, tell NVDA to veto this event at the object level, otherwise focus change handling breaks + # due to live region change event being queued. + if obj.role == controlTypes.Role.DATAITEM and obj.parent.role in ( + controlTypes.Role.TABLEROW, # Clipboard history item + controlTypes.Role.LIST, # Clipboard history item actions list + ): + obj._shouldAllowUIALiveRegionChangeEvent = False diff --git a/user_docs/en/changes.md b/user_docs/en/changes.md index 56fb556b549..5f99a670df6 100644 --- a/user_docs/en/changes.md +++ b/user_docs/en/changes.md @@ -60,6 +60,7 @@ To use this feature, "allow NVDA to control the volume of other applications" mu * After reporting a normalized character, NVDA no longer incorrectly reports subsequent characters as normalized. (#17286, @LeonarddeR) * Composite characters (such as é) are now reported correctly. (#17295, @LeonarddeR) * In Word or Outlook, when using legacy object model, the command to report the destination URL of a link does not report any longer "Not a link" when there is one to report. (#17292, @CyrilleB79) +* NVDA will no longer announce Windows 11 clipboard history entries when closing the window while items are present. (#17308, @josephsl) * If the plugins are reloaded while a browseable message is opened, NVDA will no longer fail to report subsequent focus moves. (#17323, @CyrilleB79) ### Changes for Developers