Skip to content

Windows 11 Notepad: announce status bar if shown#13690

Merged
seanbudd merged 6 commits intonvaccess:masterfrom
josephsl:i13688win11Notepad
May 17, 2022
Merged

Windows 11 Notepad: announce status bar if shown#13690
seanbudd merged 6 commits intonvaccess:masterfrom
josephsl:i13688win11Notepad

Conversation

@josephsl
Copy link
Copy Markdown
Contributor

Link to issue number:

Fixes #13688

Summary of the issue:

With the redesigned Windows 11 Notepad, users cannot obtain statsu bar information.

Description of how this pull request fixes the issue:

Introduce a new Windows 11 Notepad app module (notepad.exe). With the new UI design, status bar cannot be obtained as in prior Notepad releases. Thankfully it is possible to traverse the UIA tree to obtain the status bar object from a specific child element position (this is because child elements have the same UIA class name). Also, status bar is shown if focused on the document window (rich edit) and enabled from view menu.

Testing strategy:

Manual testing:

  1. With Windows 11 installed, install Notepad 11.2203 or later.
  2. Open Notepad.
  3. Select View/status bar.
  4. Type text.
  5. Perform status bar command (NVDA+End in desktop layout/NVDA+Shift+End in laptop layout).

Known issues with pull request:

None, although status bar position may need to be changed if Microsoft updates Notepad interface in future releases.

Change log entries:

Bug fixes:

NVDA will announce status bar content in Windows 11 Notepad. (#13386

Code Review Checklist:

  • Pull Request description:
    • description is up to date
    • change log entries
  • Testing:
    • Unit tests
    • System (end to end) tests
    • Manual testing
  • API is compatible with existing add-ons.
  • Documentation:
    • User Documentation
    • Developer / Technical Documentation
    • Context sensitive help for GUI changes
  • UX of all users considered:
    • Speech
    • Braille
    • Low Vision
    • Different web browsers
    • Localization in other languages / culture than English

… 11 that allows NVDA to announce status bar text if shown. Re nvaccess#13688.

Introduce a new Windows 11 Notepad app module (notepad.exe). With the new UI design, status bar cannot be obtained as in prior Notepad releases. Thankfully it is possible to traverse the UIA tree to obtain the status bar object from a specific child element positiion (this is because child elements have the same UIA class name). Also, statsu bar is shown if focused on the document window (rich edit) and enabled from view menu.
@josephsl josephsl requested a review from a team as a code owner May 12, 2022 13:54
@josephsl josephsl requested a review from seanbudd May 12, 2022 13:54
josephsl added 4 commits May 16, 2022 01:14
…ccess#13688.

Advised by Sean Budd (NV Access): add an explanation and a variable about Notepad 11 status bar (look for a specific UIA element (child of the foreground window) that hosts status bar text if visible).
…13688.

Advised by Sean Budd (NV Access): add a docstring for status bar retrieval method to highlight:
* The need for this routine
* Needing to check status bar child position whenver Notepad is updated (Windows 11 NOtepad is updated through Microsoft Store as opposed to being tied to a specific Windows release).
…access#13688.

Advised by Sean Budd (NV Access): should the app module method fail (and raise NotImplementedError), api.getStatusBar will resort to position lookup, therefore document this aspect.
@josephsl
Copy link
Copy Markdown
Contributor Author

josephsl commented May 16, 2022 via email

@seanbudd seanbudd merged commit 5d40ad4 into nvaccess:master May 17, 2022
@nvaccessAuto nvaccessAuto added this to the 2022.2 milestone May 17, 2022
@josephsl josephsl deleted the i13688win11Notepad branch May 19, 2022 07:31
@josephsl
Copy link
Copy Markdown
Contributor Author

josephsl commented Oct 11, 2022 via email

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 11 Notepad: status bar is not announced

3 participants