Skip to content

Albatross braille driver: small improvements #14844

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

burmancomp
Copy link
Contributor

@burmancomp burmancomp commented Apr 19, 2023

Link to issue number:

none

Summary of the issue:

Added some gestures. Do not try to open port if it is not present.

Description of user facing changes

Added following gestures:

  • | Shows braille settings | f1+home1, f9+home2 |
  • | Reads status bar and moves navigator object into it | f1+end1, f9+end2 |
  • | Cycle the braille cursor shape | f1+eCursor1, f9+eCursor2 |
  • | Toggle the braille cursor | f1+cursor1, f9+cursor2 |

If there is working connection, and I/O error occurs, port presence is checked before trying to open it again. USB serial port disappears when cable is plugged out or device is powered off, thus efforts to open port are then useless. Debug level log entries are also more readable telling that port is not present instead of exception info.

Description of development approach

Added boolean function _portPresent to class ReadThread in _threading.py.

Testing strategy:

Tested with 80 cells model.

Known issues with pull request:

none known

Change log entries:

New features
Changes
Added gestures for showing braille settings dialog, accessing status bar, cycling the braille cursor shape, and toggling the braille cursor on/off.
Bug fixes
For Developers
Added boolean function _portPresent to class ReadThread in _threading.py.

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.

- new gestures
- do not try to open port if it is not present (better log readability
when log level is debug)
- wrong file name in readme.md
@burmancomp burmancomp requested review from a team as code owners April 19, 2023 10:56
Copy link
Member

@seanbudd seanbudd left a comment

Choose a reason for hiding this comment

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

Thanks @burmancomp

@seanbudd seanbudd merged commit a0f16e0 into nvaccess:master Apr 20, 2023
@nvaccessAuto nvaccessAuto added this to the 2023.2 milestone Apr 20, 2023
@burmancomp
Copy link
Contributor Author

Thank you @seanbudd

@burmancomp burmancomp deleted the albatrossDriver_small_improvements branch April 20, 2023 05:34
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.

3 participants