Skip to content

Allow add-on braille display drivers to opt in for auto detection #15196

@LeonarddeR

Description

@LeonarddeR

Is your feature request related to a problem? Please describe.

There is currently no documented way for braille display drivers to register themselves for auto detection. You can register a display in a global plugin, but as the global plugin loads after the braille subsystem, the display won't be detected in the first round of detection.

Describe the solution you'd like

  1. Add a registerAutomaticDetection method on BrailleDisplayDriver. This method must be implemented for drivers to register themselves in bdDetect. The method receives a new bdDetect.DriverRegistrar object that has addUsbDevices, addBluetoothDevices and addDeviceScanner methods that are bound to the driver.
  2. Add a new checklistbox to the braille display selection dialog. When selection is set to automatic, this list box will be visible and allows you to opt out for auto detection of drivers you aren't interested in. For example, I only own HandyTech and Humanware devices, so the rest can be stolen from me.😉 Note that this list box will be a opt out list, so drivers will be enabled by default. This ensures that new drivers will always be enabled unless explicitly disabled.
  3. bdDetect.addUsbDevices and bdDetect.addBluetoothDevices will be deprecated. The advanced option to disable HID braille will also be removed in favor of this new ability to opt out for detection. As HID braille opt out is an advanced setting, I don't think profile upgrades are required.

Metadata

Metadata

Assignees

No one assigned

    Labels

    blocked/needs-product-decisionA product decision needs to be made. Decisions about NVDA UX or supported use-cases.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions