Skip to content

Windows 10 Calculator (follow-up to PR #9429): results announcement in compact overlay and unit converter#11883

Merged
feerrenrut merged 4 commits into
nvaccess:masterfrom
josephsl:win10CalculatorFollowup
Dec 1, 2020
Merged

Windows 10 Calculator (follow-up to PR #9429): results announcement in compact overlay and unit converter#11883
feerrenrut merged 4 commits into
nvaccess:masterfrom
josephsl:win10CalculatorFollowup

Conversation

@josephsl

@josephsl josephsl commented Dec 1, 2020

Copy link
Copy Markdown
Contributor

Link to issue number:

Follow-up to #9429
Fixes #11880
Fixes #11881

Summary of the issue:

Improve result announcements in compact overlay mode and unit converters. Specifically:

  • NVDA will now announce calculator results in compact overlay (alwasy on top) mode.
  • NVDA will not announce convert from/converts into fields multiple times in unit converter.

Description of how this pull request fixes the issue:

For compact overlay: add a UIA Automation Id used in alwasy on top mode to represent calculator results, resulting in results being announced when Enter, Numpad Enter, or Escape is pressed.

Unit converter: NVDA will no longer announce convert from/converts into fields multiple times, resolved by adding "Value1" and "Value2" Automation Id strings for unit conversion fields to a list of no result announcement list.

Testing performed:

Tested via Windows 10 App Essentials and from source code with Calculator version 10.2010 and later running on Windows 10 Version 20H2.

Known issues with pull request:

None

Change log entry:

Not needed (see #9429).

…access#11880.

If a user presses Escape several times while focused on either 'convert from' or 'converts into' fields in unit converter, NVDA will announce the field again after a number is entered. This was traced to result announcement flag that is checked from name change event handler. To avoid repetition, add UIA Automation Id's for these elements (Value1 and Value2, respectively) to a list of no result announcement Id's.
…me change event handler element check. Re nvaccess#11880.

Now that unit converter element Automation Id's were added to no result nanouncement list, there's no need to check for these in name change event handler.
…y (always on top) mode. Re nvaccess#11881.

Always on top (compact overlay) mode uses a different UIA Automation Id to represent results. Therefore add this to a list of Id's to be checked when handling results script (Enter, Numpad Enter, Escape).
@josephsl josephsl changed the title Windows 10 Calculator: results announcement in compact overlay and unit converter Windows 10 Calculator (follow-up to PR #9429): results announcement in compact overlay and unit converter Dec 1, 2020
Comment thread source/appModules/calculator.py Outdated
@@ -51,7 +55,7 @@ def event_nameChange(self, obj, nextHandler):
):
# For unit conversion, UIA notification event presents much better messages.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think this comment needs to be updated?

@josephsl

josephsl commented Dec 1, 2020 via email

Copy link
Copy Markdown
Contributor Author

@josephsl

josephsl commented Dec 1, 2020 via email

Copy link
Copy Markdown
Contributor Author

@feerrenrut feerrenrut left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks @josephsl

@feerrenrut feerrenrut merged commit 7b72c21 into nvaccess:master Dec 1, 2020
@nvaccessAuto nvaccessAuto added this to the 2020.4 milestone Dec 1, 2020
@josephsl josephsl deleted the win10CalculatorFollowup branch December 12, 2020 23:10
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 Calculator: results are not announced in compact overlay mode Windows 10 Calculator: repetition in unit converter

3 participants