Skip to content

Pressing Enter to close Start menu in Windows 10 no longer results in NVDA announcing search field text. re #7370.#7375

Merged
michaelDCurran merged 2 commits into
nvaccess:masterfrom
josephsl:i7370
Jul 25, 2017
Merged

Pressing Enter to close Start menu in Windows 10 no longer results in NVDA announcing search field text. re #7370.#7375
michaelDCurran merged 2 commits into
nvaccess:masterfrom
josephsl:i7370

Conversation

@josephsl

@josephsl josephsl commented Jul 11, 2017

Copy link
Copy Markdown
Contributor

Resolves the following:

section: bug fixes

In start menu in Windows 10, pressing Enter to close the start menu after a search no longer causes NVDA to announce search text.

Thanks.

…tart menu) is closing. re nvaccess#7370.

due to use of announceNewlineText, when start menu closes and when Enter is pressed, search field value will be announced, which sometimes leads to side effects such as core freeze. Address this through initOverClass in UIA.SearchField that turns this flag off if and only if we're in start menu in Windows 10.
@josephsl josephsl requested a review from michaelDCurran July 11, 2017 03:20

@derekriemer derekriemer left a comment

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.

Questions

Comment thread source/NVDAObjects/UIA/__init__.py Outdated

def initOverlayClass(self):
# #7370: do not announce text when start menu (searchui) closes.
self.announceNewLineText = self.appModule.appName != "searchui"

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.

Would creating a new overlay just for this be better?

@michaelDCurran michaelDCurran left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I agree with Derek. Either make this into its own overlay class in searchUI, or perhaps even just place this variable on the SearchField class no matter if it is searchUI or not. For now at least, this class is only used for single-line edit fields where speaking on enter makes no sense. Obviously I do acknowledge that in the future this may change.

@josephsl

josephsl commented Jul 11, 2017 via email

Copy link
Copy Markdown
Contributor Author

…at disables announcement of newline text. re nvaccess#7370.

Reviewed by Mick Curran (NV Access): better to create an overlay class for this just for searchui. This also allows easy modifications in the future if the need arises.
michaelDCurran added a commit that referenced this pull request Jul 12, 2017
@michaelDCurran michaelDCurran merged commit 5041673 into nvaccess:master Jul 25, 2017
@nvaccessAuto nvaccessAuto added this to the 2017.3 milestone Jul 25, 2017
@josephsl josephsl deleted the i7370 branch August 10, 2020 04:14
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.

NVDA and Windows 10 Start Menu: reporting typed text after closing the menu

4 participants