Skip to content

Commit

Permalink
Winodws 11 emoji panel/navigation menu item: ignore element selected …
Browse files Browse the repository at this point in the history
…event if menu items are gaining focus. Re nvaccess#16532.

Gain focus event is fired by navigation menu itmes if the panel is open to clipboard history, resulting in repetitions (both gain focus and element selected events are fired for clipboard history item). Ignore the element selected event so gain focus event can announce the selected menu item.
  • Loading branch information
josephsl committed May 16, 2024
1 parent 3917efe commit a4b9bc1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ def event_UIA_elementSelected(self):
if (
# #16346: system focus restored.
(focus := api.getFocusObject()).appModule != self.appModule
# #16532: repeat announcement due to pending gain focus event on category entries.
or eventHandler.isPendingEvents("gainFocus")
):
return
# Manipulate NVDA's focus object.
Expand Down

0 comments on commit a4b9bc1

Please sign in to comment.