appModules/SearchUI: add support for announcing suggestion count in Windows 10 Version 1909 and later#10349
Conversation
|
Is this somehow related to #8472? |
|
Hi, I can see a connection – let me test that PR to see if this one can be rephrased as such. Thanks.
|
|
Hi, this is different than #8466, as there is no “alert” associated with this one. Thanks.
|
|
Hi, It is ready for another round of review after 2019.3 is released. Thanks. |
|
Hi, Indeed, 2019.3 was released. Thanks. |
…indows 10 Version 1909. Re nvaccess#10341. In Windows 10 Version 1909 (build 18363) and later, File Explorer gains ability to search OneDrive content. This is powered by an embedded Windows Search feature (SearchUI.exe) with a live region announcing suggestion count. This live region has no label, but the child object does, thus coerce the name of this object to be the name of its child, which then allows live region change event to work.
ddbcfcb to
2021633
Compare
|
Hi, Update: I haven't forgotten about this PR - it's just that more important pull requests came along and developers are going through backlog. Thanks. |
See test results for failed build of commit f3a275b085 |
See test results for failed build of commit 727743f2b0 |
|
Any updates on this PR? |
|
Hi, I might resurrect this for 2021.2 – see a discussion between I and @jcsteh for some thoughts about this. In fact, I just committed changes to Windows 10 App Essentials that might help with this PR. Note that announcing suggestion count applies to apps other than SearchUI/SearchApp (Windows Search) because these apps do report suggestion count (navigator object moves to suggestions list which does report position info). Thanks.
|
|
Hi, Thanks. |
|
|
||
| def event_NVDAObject_init(self, obj): | ||
| if isinstance(obj, UIA): | ||
| # #10341: Build 18363 introduces modern search experience in File Explorer. |
There was a problem hiding this comment.
If this is only available in Build 18363 and later, should this be protected by a check for the windows version? If not, please describe in the comment how this code handles earlier versions. I assume that the UIAAutomationId wont be suggestionCountForNarrator in earlier builds of Windows?
| pass | ||
| elif isinstance(obj, UIA): | ||
| if obj.UIAElement.cachedAutomationID == "SearchTextBox": | ||
| if obj.UIAAutomationId == "SearchTextBox": |
There was a problem hiding this comment.
Perhaps this is only ever true in post 18363 builds?
There was a problem hiding this comment.
Can you verify whether this change is applicable to earlier builds? It may need the same windows version check.
|
Hi, modern search integration was introduced in 18363, and prior to that, the search UI is different (I’ll add a check for windows releases just to make sure).
|
|
Ok. But the problem I want to solve is: |
|
Hi, one simple solution I think (which I will do before I sleep) is specifying on which Windows 10 version the code will run on (winVersion.WIN10_1909, to be exact). Thanks.
|
…ble from Windows 10 Version 1909 (build 18363/NOvember 2019 Update). Re nvaccess#10341. Comment from Reef Turner (NV Access): clarify that Windows Search/suggestion count in File Explorer is available from Windows 10 Version 1909, also split the condition into multiple lines to prepare for Flake8 (lint).
|
Hi, no need to change this, as SearchUI was introduced in Windows 10, although I think a header comment should clarify this fact (@michaelDCurran had an adventure with this app module in particular back in 2015 because Windows Search kept freezing for some odd reason). Thanks,
|
|
Hi, A component of #12585 because searchapp.exe was renamed to searchhost.exe in Windows 11, complete with exact same live region implementation as this PR. Therefore, once this PR is erviewed and merged, it can be applied easily to Windows 11 by introducing an alias app module for searchhost.exe that will import from searchui.py. Thanks. |
|
@feerrenrut It looks like all changes that you've requested has been addressed. Would it be possible to re-review this? |
|
How to test:
|
Link to issue number:
Fixes #10341
Summary of the issue:
In Windows 10 Version 1909, File Explorer gains ability to search OneDrive content via Windows Search, with a live region used to provide suggestion count announcement.
Description of how this pull request fixes the issue:
In Windows 10 Version 1909 (build 18363) and later, File Explorer gains ability to search OneDrive content. This is powered by an embedded Windows Search feature (SearchUI.exe) with a live region announcing suggestion count. This live region has no label, but the child object does, thus coerce the name of this object to be the name of its child, which then allows live region change event to work.
Testing performed:
Tested in Version 1909 (build 18363) and via Windows 10 App Essentials add-on.
Known issues with pull request:
None
Change log entry:
Possibly either new features or changes:
In Windows 10 Version 1909 (change this wording to marketing name once 1909 comes out), NVDA will announce suggestion count when performing searches in File Explorer. (#10231