Skip to content

Start menu suggestions: announce result details#10340

Merged
michaelDCurran merged 5 commits into
nvaccess:masterfrom
josephsl:i10329searchuiSuggestionsListItem
Oct 9, 2019
Merged

Start menu suggestions: announce result details#10340
michaelDCurran merged 5 commits into
nvaccess:masterfrom
josephsl:i10329searchuiSuggestionsListItem

Conversation

@josephsl

@josephsl josephsl commented Oct 6, 2019

Copy link
Copy Markdown
Contributor

Hi,

First of a series of pull requests on updating Start menu support routines:

Link to issue number:

Fixes #10329

Summary of the issue:

Details for search results are not announced like in the past.

Description of how this pull request fixes the issue:

Due to restructured UIA tree for Start menu (applicable in Version 1607/Anniversary Update with updated Windows Search design), search results are housed inside search categories, with categories themselves reported as suggestions list items. Therefore recognize result entries as seen in newer Windows Search experience.

Testing performed:

Tested via Windows 10 App Essentials on Version 1607 and later (no need to look into 1507 and 1511 because they retain the original Windows 10 Start menu experience).

Known issues with pull request:

Results will be announced twice due to caret movement script (see #10336 and a follow-up PR for a fix).

Change log entry:

Bug fixes:

In Start menu for Windows 10 Anniversary Update and later, NVDA will announce details of search results. (#10232

…es with redesigned Windows Search. Re nvaccess#10329.

In 2019, Windows Search has been redesigned. Although the new UI appeared in Version 1903 (May 2019 Update), it was made available to older Windows 10 releases with a server-side update. Compared to old UI, suggestions are grouped by categories - instead of all results grouped under a single list, results list is now populated with search categories, with each category in turn hosting a list of results. This latter control isn't recognized as suggestions list, leading to NVDA not announcing item detalis as it used to.
Therefore recognize the new UI and recognize actual results so NVDA can announce result details. This results in repetitions, which will be corrected with a accompanying work dealing with search field caret event changes.
@michaelDCurran

Copy link
Copy Markdown
Member

In 18995, It looks as though the suggestions in each category are housed in an unlabeled list item which is a sibling to the category listItem itself. I.e. If I type "word" There is a "find results in apps" listItem, and its next sibling is an unlabeled listItem, which contains "Microsoft Word Mobile" "Microsoft Word 2007" etc.
Neither these suggestions nor the unlabelled listItem have a useful automationID or className.
Is this also what you are seeing?
In short, this pr does not seem to make anydifference for me on this build of Windows.

@josephsl

josephsl commented Oct 7, 2019 via email

Copy link
Copy Markdown
Contributor Author

clsList.insert(0, StartMenuSearchField)
# #10329: Since 2019, some suggestion items are grouped inside another suggestions list item.
# Because of this, result details will not be announced like in the past.
elif obj.role == controlTypes.ROLE_LISTITEM and isinstance(obj.parent, SuggestionListItem):

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be possible to add this extra check to the findOverlayClasses function in NVDAObjects.UIA? I have the feelling that current code scatters the places where SuggestionListItem is added as an overlay.

@josephsl

josephsl commented Oct 8, 2019

Copy link
Copy Markdown
Contributor Author

Hi,

Ah, I see what's up: executable has been renamed, that's why you are not seeing changes. I'll file a PR that'll support this PR and a host of Windows Search PR's (I should have done that before doing this PR series)...

Thanks.

@josephsl

josephsl commented Oct 8, 2019 via email

Copy link
Copy Markdown
Contributor Author

@LeonarddeR

LeonarddeR commented Oct 8, 2019 via email

Copy link
Copy Markdown
Collaborator

@josephsl

josephsl commented Oct 8, 2019 via email

Copy link
Copy Markdown
Contributor Author

…due to UI redesign.

Commented by Leonard de Ruijter (Babbage): because not all suggestions list items are not part of results list (some are inside another item such as results from Windows Search in 2019 due to UI changes), document this fact for clarity.
@josephsl

josephsl commented Oct 9, 2019

Copy link
Copy Markdown
Contributor Author

Hi,

To @michaelDCurran - can you try testing the PR with latest commit which adds searchapp app module for 20H1?

Thanks.

@michaelDCurran

Copy link
Copy Markdown
Member

@josephsl Yes, this is now working great on 18995 :)

@michaelDCurran michaelDCurran merged commit d3adf2f into nvaccess:master Oct 9, 2019
@nvaccessAuto nvaccessAuto added this to the 2019.3 milestone Oct 9, 2019
michaelDCurran added a commit that referenced this pull request Oct 9, 2019
@josephsl josephsl deleted the i10329searchuiSuggestionsListItem branch November 2, 2019 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows 10 start menu: search results are not announced with details with recent feature updates

4 participants