@@ -826,13 +826,12 @@ def IUIAutomationEventHandler_HandleAutomationEvent(self, sender, eventID):
826826 ):
827827 if _isDebug ():
828828 log .debug (
829- "HandleAutomationEvent: "
830- f"Ignoring event { NVDAEventName } because ignored by object itself" ,
829+ f"HandleAutomationEvent: Ignoring event { NVDAEventName } because ignored by object itself" ,
831830 )
832831 return
833832 if _isDebug ():
834833 log .debug (
835- f"handleAutomationEvent: queuing NVDA event { NVDAEventName } " f" for NVDAObject { obj } " ,
834+ f"handleAutomationEvent: queuing NVDA event { NVDAEventName } for NVDAObject { obj } " ,
836835 )
837836 eventHandler .queueEvent (NVDAEventName , obj )
838837
@@ -918,7 +917,7 @@ def IUIAutomationFocusChangedEventHandler_HandleFocusChangedEvent(self, sender):
918917 return
919918 if _isDebug ():
920919 log .debug (
921- "handleFocusChangedEvent: Queuing NVDA gainFocus event " f" for obj { obj } " ,
920+ f "handleFocusChangedEvent: Queuing NVDA gainFocus event for obj { obj } " ,
922921 )
923922 eventHandler .queueEvent ("gainFocus" , obj )
924923
@@ -972,7 +971,7 @@ def IUIAutomationPropertyChangedEventHandler_HandlePropertyChangedEvent(
972971 ):
973972 if _isDebug ():
974973 log .debug (
975- "propertyChange event is for focus. " f" Redirecting event to focus NVDAObject { focus } " ,
974+ f "propertyChange event is for focus. Redirecting event to focus NVDAObject { focus } " ,
976975 )
977976 obj = focus
978977 elif not self .isNativeUIAElement (sender ):
@@ -1014,7 +1013,7 @@ def IUIAutomationPropertyChangedEventHandler_HandlePropertyChangedEvent(
10141013 )
10151014 if _isDebug ():
10161015 log .debug (
1017- f"handlePropertyChangeEvent: queuing NVDA { NVDAEventName } event " f" for NVDAObject { obj } " ,
1016+ f"handlePropertyChangeEvent: queuing NVDA { NVDAEventName } event for NVDAObject { obj } " ,
10181017 )
10191018 eventHandler .queueEvent (NVDAEventName , obj )
10201019
@@ -1067,7 +1066,7 @@ def IUIAutomationNotificationEventHandler_HandleNotificationEvent(
10671066 return
10681067 if _isDebug ():
10691068 log .debug (
1070- "Queuing UIA_notification NVDA event " f" for NVDAObject { obj } " ,
1069+ f "Queuing UIA_notification NVDA event for NVDAObject { obj } " ,
10711070 )
10721071 eventHandler .queueEvent (
10731072 "UIA_notification" ,
@@ -1358,8 +1357,7 @@ def getNearestWindowHandle(self, UIAElement):
13581357 return None
13591358 if _isDebug ():
13601359 log .debug (
1361- "Found ancestor element "
1362- f"with valid windowHandle { self .getWindowHandleDebugString (window )} " ,
1360+ f"Found ancestor element with valid windowHandle { self .getWindowHandleDebugString (window )} " ,
13631361 )
13641362 # Cache for future use to improve performance.
13651363 UIAElement ._nearestWindowHandle = window
@@ -1434,7 +1432,7 @@ def isNativeUIAElement(self, UIAElement):
14341432 if processID == globalVars .appPid :
14351433 if _isDebug ():
14361434 log .debug (
1437- "element is local to NVDA, " " treating as non-native." ,
1435+ "element is local to NVDA, treating as non-native." ,
14381436 )
14391437 return False
14401438 # Whether this is a native element depends on whether its window natively supports UIA.
0 commit comments