From bcc665a7b42ddd676612c4a9e24d04bfae26cdc5 Mon Sep 17 00:00:00 2001 From: Joseph Lee Date: Mon, 4 Nov 2024 06:08:20 -0700 Subject: [PATCH] Modern keyboard/clipboard history( Ruff): reformat --- ...nal_composableshell_experiences_textinput_inputapp.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/source/appModules/windowsinternal_composableshell_experiences_textinput_inputapp.py b/source/appModules/windowsinternal_composableshell_experiences_textinput_inputapp.py index 3d19454c3f6..2c07b4b55c7 100644 --- a/source/appModules/windowsinternal_composableshell_experiences_textinput_inputapp.py +++ b/source/appModules/windowsinternal_composableshell_experiences_textinput_inputapp.py @@ -436,11 +436,8 @@ def event_NVDAObject_init(self, obj: NVDAObject) -> None: # 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 - ) + 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