Skip to content

bdDetect: swap KEY_* constants with enum#15772

Merged
seanbudd merged 4 commits intonvaccess:masterfrom
LeonarddeR:dDetectEnum
Nov 22, 2023
Merged

bdDetect: swap KEY_* constants with enum#15772
seanbudd merged 4 commits intonvaccess:masterfrom
LeonarddeR:dDetectEnum

Conversation

@LeonarddeR
Copy link
Collaborator

@LeonarddeR LeonarddeR commented Nov 11, 2023

Link to issue number:

None

Summary of the issue:

bdDetect is using old style string constants to distinguish device types.

Description of user facing changes

None.

Description of development approach

Replace with enum.

Testing strategy:

Test whether random braille display is still detected appropriately.

Known issues with pull request:

None known

Code Review Checklist:

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

@LeonarddeR LeonarddeR marked this pull request as ready for review November 16, 2023 17:12
@LeonarddeR LeonarddeR requested a review from a team as a code owner November 16, 2023 17:12
@LeonarddeR LeonarddeR requested a review from seanbudd November 16, 2023 17:12
@seanbudd seanbudd added the conceptApproved Similar 'triaged' for issues, PR accepted in theory, implementation needs review. label Nov 21, 2023
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 @LeonarddeR

@seanbudd seanbudd merged commit b161e2a into nvaccess:master Nov 22, 2023
@nvaccessAuto nvaccessAuto added this to the 2024.1 milestone Nov 22, 2023
@LeonarddeR LeonarddeR deleted the dDetectEnum branch August 23, 2025 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

conceptApproved Similar 'triaged' for issues, PR accepted in theory, implementation needs review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants