Skip to content

Fix text selection with NVDA+f10 key on Java applications#14164

Merged
seanbudd merged 5 commits into
nvaccess:masterfrom
thgcode:fix/f10-selection-on-access-bridge
Sep 20, 2022
Merged

Fix text selection with NVDA+f10 key on Java applications#14164
seanbudd merged 5 commits into
nvaccess:masterfrom
thgcode:fix/f10-selection-on-access-bridge

Conversation

@thgcode

@thgcode thgcode commented Sep 18, 2022

Copy link
Copy Markdown
Contributor

Link to issue number:

Fixes #14163

Summary of the issue:

NVDA cannot select text in Java applications with the NVDA+f10 gesture.

Description of user facing changes

NVDA can now select text using the NVDA+f10 gesture on Java applications.

Description of development approach

This pull request adds the missing parameters to the selectTextRange function.

Testing strategy:

Tested on IntelliJ idea 2022.1.4 by performing the gesture.

Known issues with pull request:

Change log entries:

New features
Changes
Bug fixes
- NVDA can now select text using the ``NVDA+f10`` keyboard shortcut on Java applications (#14163)
For Developers

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
  • Security precautions taken.

@thgcode thgcode requested a review from a team as a code owner September 18, 2022 20:27
@thgcode thgcode requested a review from seanbudd September 18, 2022 20:27
Comment thread source/JABHandler.py Outdated
@@ -566,7 +566,7 @@ def getCurrentAccessibleValueFromContext(self):
return buf.value

def selectTextRange(self,start,end):

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.

Can you confirm these type annotations are correct?

Suggested change
def selectTextRange(self,start,end):
def selectTextRange(self, start: int, end: int) -> None:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks, I checked on the API docs and added the type information.

@seanbudd

Copy link
Copy Markdown
Member

I've confirmed these parameters seem correct according to the API Docs

https://docs.oracle.com/javase/9/access/jaapi.htm

@seanbudd seanbudd marked this pull request as draft September 19, 2022 04:24
@seanbudd seanbudd marked this pull request as ready for review September 20, 2022 01:17

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

Thank you for the contribution @thgcode

@seanbudd seanbudd merged commit c4103e9 into nvaccess:master Sep 20, 2022
@nvaccessAuto nvaccessAuto added this to the 2022.4 milestone Sep 20, 2022
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.

NVDA gives error when selecting text using NVDA+f10 gesture on Java applications

3 participants