Skip to content

Windows 10 Calculator: repetition in unit converter #11880

@josephsl

Description

@josephsl

Hi,

Follow-up to PR #9429

Steps to reproduce:

In Windows 10 Calculator:

  1. With Calculator set to full mode (Alt+Down arrow), press Alt+H to open the menu.
  2. Choose any of the unit converters (volume, distance, etc.).
  3. While focused on either "convert from" or 'converts into" fields, type some numbers (do not press Enter as unit conversion is realtime).
  4. Perform some more unit conversions, especially trying out the same units and same values.

Actual behavior:

NVDA announces conversion values up to two times. In these instances, NVDA will first announce the source and target values together (due to UIA notification event), followed by the value under the focus (convert from/converts into).

Expected behavior:

Result is announced only once via UIA notification event.

System configuration

NVDA installed/portable/running from source:

Installed

NVDA version:

alpha-21429,874230a7

Windows version:

Windows 10 Version 20H2 (build 19042.662 beta)

Name and version of other software in use when reproducing the issue:

Windows Calculator 10.2010.0.0

Other information about your system:

Development workstation for Windows 10 App Essentials add-on

Other questions

Does the issue still occur after restarting your computer?

Yes

Have you tried any other versions of NVDA? If so, please report their behaviors.

Same in 2020.3

If addons are disabled, is your problem still occurring?

Yes

Did you try to run the COM registry fixing tool in NVDA menu / tools?

Not applicable

Additional context

This is caused by cache checks in name change event, specifically the results cache is not cleared when a user presses Escape, Enter, or Numpad Enter (results script).

Solutions

The obvious solution is clearing results cache. A more subtle solution is adding unit conversion source and target Automation Id's to a list of Id's to be suppressed (when announcing results). The upcoming PR (also see the next issue) will combine these.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions