Skip to content

Commit b82f75f

Browse files
Bugfix for Braille display detection (#18115)
closes #18114 Summary of the issue: Braille display sometimes failing to be detected Description of user facing changes Description of development approach I read the log file and found that the problem was an incorrect use of sets while populating the fallback drivers list
1 parent d6ff4db commit b82f75f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

source/bdDetect.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# A part of NonVisual Desktop Access (NVDA)
22
# This file is covered by the GNU General Public License.
33
# See the file COPYING for more details.
4-
# Copyright (C) 2013-2023 NV Access Limited, Babbage B.V., Leonard de Ruijter
4+
# Copyright (C) 2013-2025 NV Access Limited, Babbage B.V., Leonard de Ruijter, Christian Comaschi
55

66
"""Support for braille display detection.
77
This allows devices to be automatically detected and used when they become available,
@@ -219,7 +219,7 @@ def getDriversForConnectedUsbDevices(
219219
)
220220
)
221221

222-
fallbackDriversAndMatches: list[set[str, DeviceMatch]] = []
222+
fallbackDriversAndMatches: list[tuple[str, DeviceMatch]] = []
223223
for match in itertools.chain(usbCustomDeviceMatches, usbHidDeviceMatchesForCustom, usbComDeviceMatches):
224224
for driver, devs in _driverDevices.items():
225225
if limitToDevices and driver not in limitToDevices:
@@ -228,7 +228,7 @@ def getDriversForConnectedUsbDevices(
228228
for definition in usbDefinitions:
229229
if definition.matches(match):
230230
if definition.useAsFallback:
231-
fallbackDriversAndMatches.append({driver, match})
231+
fallbackDriversAndMatches.append((driver, match))
232232
else:
233233
yield (driver, match)
234234

user_docs/en/changes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ This option is enabled by default, but may result in increased battery depletion
133133
* When the Standard HID Braille Display driver is explicitly selected as the braille display driver, and the braille display list is opened, NVDA correctly identifies the HID driver as the selected driver instead of showing no driver selected. (#17537, @LeonarddeR)
134134
* The Humanware Brailliant driver is now more reliable in selecting the right connection endpoint, resulting in better connection stability and less errors. (#17537, @LeonarddeR)
135135
* Custom braille tables in the developer scratchpad are now properly ignored when running with add-ons disabled. (#17565, @LeonarddeR)
136+
* Fixed an issue where some USB braille displays were not properly detected by NVDA. (#18114, @christiancomaschi)
136137
* Microsoft Office:
137138
* The command to "Report the destination URL of a link" now works as expected when using the legacy object model in Word, Outlook, Excel and PowerPoint. (#17292, #17362, #17435, @CyrilleB79)
138139
* In Excel, the element list dialog (`NVDA+f7`) no longer fails to list comment or formulas on some non-English systems. (#11366, @CyrilleB79)

0 commit comments

Comments
 (0)