Skip to content

Add a script to report locationText for the position of the system caret#13060

Merged
seanbudd merged 4 commits into
nvaccess:masterfrom
lukaszgo1:I9147
Nov 23, 2021
Merged

Add a script to report locationText for the position of the system caret#13060
seanbudd merged 4 commits into
nvaccess:masterfrom
lukaszgo1:I9147

Conversation

@lukaszgo1

Copy link
Copy Markdown
Contributor

Link to issue number:

Closes #9147
Related to #7314

Summary of the issue:

Currently it is impossible to report locationText for the current caret position only for the position of the review cursor. This is problematic in several cases:

While for people working with review cursor following system caret current NVDA+Numpad delete is sufficient for these use cases when review cursor does not follow caret you need to move it to focus every time when you need to check your current position which wastes time, and more importantly makes your review position lost.

Description of how this pull request fixes the issue:

  • NVDA+numpad delete reports location of the caret or focused object if there is no caret by default.
  • Script for reporting review cursor position has been reassigned to NVDA+shift+Numpad delete - for most users there is no change as navigator follows focus and review follows caret by default.
  • The modified scripts are splitted into separate ones for querying location of the text / object as discussed in Split out global commands into distinct scripts #7314.

Testing strategy:

Ensured that modified scripts works.

Known issues with pull request:

None known

Change log entries:

Changes

  • NVDA+Numpad delete reports location of the caret / focused object by default - add shift to report location of the review cursor.

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

…report location of the caret and move reporting of review cursor location into a separate script.

@seanbudd seanbudd 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.

Thanks @lukaszgo1, generally looks good to me. I've added a few whitespace and other minor fixes.

Comment thread source/globalCommands.py Outdated
Comment thread source/globalCommands.py Outdated
Comment thread source/globalCommands.py Outdated
Comment thread source/globalCommands.py Outdated
Comment thread source/globalCommands.py Outdated
Comment thread source/globalCommands.py Outdated
@lukaszgo1

Copy link
Copy Markdown
Contributor Author

@seanbudd I believe all changes you've requested are now addressed.

@seanbudd seanbudd 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.

Thanks @lukaszgo1, looks good to me.
Going to wait for @Qchristensen to check the user guide changes before merging.

@Qchristensen Qchristensen 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.

Looks good, great work!

@seanbudd seanbudd merged commit b7d202b into nvaccess:master Nov 23, 2021
@nvaccessAuto nvaccessAuto added this to the 2022.1 milestone Nov 23, 2021
@lukaszgo1 lukaszgo1 deleted the I9147 branch November 23, 2021 07:59
michaelDCurran pushed a commit that referenced this pull request Dec 6, 2021
Punctuation in the descriptions of the new scripts added in PR #13060 was used inconsistently i.e. missing full stops and commas.

Description of how this pull request fixes the issue:
Fixed these inconsistencies by making sure that all full sentences ends with a full stop and added a missing comma.
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.

Add alternative way to report name of the current Excel sheet which don't require moving review cursor into Excel window

4 participants