nvda
559ce078 - Windows 10 Calculator: resolve expression entry repetitions (PR #9429)

Commit
5 years ago
Windows 10 Calculator: resolve expression entry repetitions (PR #9429) Fixes #9428. Calculator raises UIA notification event (live region change event in older releases and in some screens) to communication progress and results of calculations. However, this results in repetitions if typed character announcement is turned on. Thus, as part of this new app module, suppress repetitive announcements if possible. * Windows 10 Calculator: remove live region handler. In the old days of Calculator, live regions were used from various places, including calculator expressions, unit conversion and other places. Now that uIA notification event and some name change events will take care of this, remove live region change event support code (and also becasue NVDA itself will announce live regions if possible). * Calculator: updates to notification and name change event handling due to UI changes in 2019. * Calculator: gather a list of UIA automation ID's for objects that should not allow NVDA to repeatedly announce calculation results or expressions. Re #9428. With the advent of always on top i.e. compact overlay mode in Calculator, additional UIA automation ID's were added for calculation results and expressions in overlay mode. Because of line length concerns, the additional ID's, together with the existing ones, are now housed inside a list of known ID's causing NVDA to announce expressions repeatedly. Not only this makes it easy to add more ID's in the future (either through NVDA Core or add-ons), it improves readability for name change and notification event handler methods (and keeps the lines short). * Calculator: support always on top (compact overlay) mode. In August 2019, Calculator app (preview) added always on top mode. As the name suggests, this puts standard calculator on top of other windows. Because of this, UIA tree has been changed, so work with old and new tree structure. * Calculator: announce more notifications except display updated activity ID. Display updated activity ID should be ignored unless needed, as it causes repetitions when entering calculations while speak typed characters is on.
Author
Parents
Loading