Hopefully fixed problems with connection external numpads.
This commit is contained in:
@ -4,6 +4,6 @@
|
|||||||
# Fenrir TTY screen reader
|
# Fenrir TTY screen reader
|
||||||
# By Chrys, Storm Dragon, and contributors.
|
# By Chrys, Storm Dragon, and contributors.
|
||||||
|
|
||||||
version = "2025.07.21"
|
version = "2025.07.23"
|
||||||
codeName = "testing"
|
codeName = "testing"
|
||||||
code_name = "testing"
|
code_name = "testing"
|
||||||
|
@ -561,6 +561,15 @@ class driver(inputDriver):
|
|||||||
# 0 = Numlock
|
# 0 = Numlock
|
||||||
# 1 = Capslock
|
# 1 = Capslock
|
||||||
# 2 = Rollen
|
# 2 = Rollen
|
||||||
|
|
||||||
|
# Use the first device with LED capability as authoritative source
|
||||||
|
# to avoid inconsistent readings from multiple devices during initialization
|
||||||
|
for fd, dev in self.iDevices.items():
|
||||||
|
# Check if device has LED capability (capability 17)
|
||||||
|
if 17 in dev.capabilities():
|
||||||
|
return led in dev.leds()
|
||||||
|
|
||||||
|
# Fallback to old behavior if no device has LED capability
|
||||||
for fd, dev in self.iDevices.items():
|
for fd, dev in self.iDevices.items():
|
||||||
if led in dev.leds():
|
if led in dev.leds():
|
||||||
return True
|
return True
|
||||||
|
Reference in New Issue
Block a user