@@ -820,13 +820,12 @@ def IUIAutomationEventHandler_HandleAutomationEvent(self, sender, eventID):
820820 ):
821821 if _isDebug ():
822822 log .debug (
823- "HandleAutomationEvent: "
824- f"Ignoring event { NVDAEventName } because ignored by object itself" ,
823+ f"HandleAutomationEvent: Ignoring event { NVDAEventName } because ignored by object itself" ,
825824 )
826825 return
827826 if _isDebug ():
828827 log .debug (
829- f"handleAutomationEvent: queuing NVDA event { NVDAEventName } " f" for NVDAObject { obj } " ,
828+ f"handleAutomationEvent: queuing NVDA event { NVDAEventName } for NVDAObject { obj } " ,
830829 )
831830 eventHandler .queueEvent (NVDAEventName , obj )
832831
@@ -912,7 +911,7 @@ def IUIAutomationFocusChangedEventHandler_HandleFocusChangedEvent(self, sender):
912911 return
913912 if _isDebug ():
914913 log .debug (
915- "handleFocusChangedEvent: Queuing NVDA gainFocus event " f" for obj { obj } " ,
914+ f "handleFocusChangedEvent: Queuing NVDA gainFocus event for obj { obj } " ,
916915 )
917916 eventHandler .queueEvent ("gainFocus" , obj )
918917
@@ -966,7 +965,7 @@ def IUIAutomationPropertyChangedEventHandler_HandlePropertyChangedEvent(
966965 ):
967966 if _isDebug ():
968967 log .debug (
969- "propertyChange event is for focus. " f" Redirecting event to focus NVDAObject { focus } " ,
968+ f "propertyChange event is for focus. Redirecting event to focus NVDAObject { focus } " ,
970969 )
971970 obj = focus
972971 elif not self .isNativeUIAElement (sender ):
@@ -1008,7 +1007,7 @@ def IUIAutomationPropertyChangedEventHandler_HandlePropertyChangedEvent(
10081007 )
10091008 if _isDebug ():
10101009 log .debug (
1011- f"handlePropertyChangeEvent: queuing NVDA { NVDAEventName } event " f" for NVDAObject { obj } " ,
1010+ f"handlePropertyChangeEvent: queuing NVDA { NVDAEventName } event for NVDAObject { obj } " ,
10121011 )
10131012 eventHandler .queueEvent (NVDAEventName , obj )
10141013
@@ -1061,7 +1060,7 @@ def IUIAutomationNotificationEventHandler_HandleNotificationEvent(
10611060 return
10621061 if _isDebug ():
10631062 log .debug (
1064- "Queuing UIA_notification NVDA event " f" for NVDAObject { obj } " ,
1063+ f "Queuing UIA_notification NVDA event for NVDAObject { obj } " ,
10651064 )
10661065 eventHandler .queueEvent (
10671066 "UIA_notification" ,
@@ -1352,8 +1351,7 @@ def getNearestWindowHandle(self, UIAElement):
13521351 return None
13531352 if _isDebug ():
13541353 log .debug (
1355- "Found ancestor element "
1356- f"with valid windowHandle { self .getWindowHandleDebugString (window )} " ,
1354+ f"Found ancestor element with valid windowHandle { self .getWindowHandleDebugString (window )} " ,
13571355 )
13581356 # Cache for future use to improve performance.
13591357 UIAElement ._nearestWindowHandle = window
@@ -1428,7 +1426,7 @@ def isNativeUIAElement(self, UIAElement):
14281426 if processID == globalVars .appPid :
14291427 if _isDebug ():
14301428 log .debug (
1431- "element is local to NVDA, " " treating as non-native." ,
1429+ "element is local to NVDA, treating as non-native." ,
14321430 )
14331431 return False
14341432 # Whether this is a native element depends on whether its window natively supports UIA.
0 commit comments