Skip to content

Commit

Permalink
Pre-commit auto-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Nov 4, 2024
1 parent e980b43 commit acdfb10
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit acdfb10

Please sign in to comment.