Another shot at fixing multiple numpads.
This commit is contained in:
@ -24,6 +24,11 @@ class command:
|
|||||||
def run(self):
|
def run(self):
|
||||||
if self.env["input"]["oldNumLock"] == self.env["input"]["newNumLock"]:
|
if self.env["input"]["oldNumLock"] == self.env["input"]["newNumLock"]:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
# Only announce numlock changes if an actual numlock key was pressed
|
||||||
|
# This prevents spurious announcements from external numpad automatic state changes
|
||||||
|
current_input = self.env["input"]["currInput"]
|
||||||
|
if current_input and "KEY_NUMLOCK" in current_input:
|
||||||
if self.env["input"]["newNumLock"]:
|
if self.env["input"]["newNumLock"]:
|
||||||
self.env["runtime"]["OutputManager"].present_text(
|
self.env["runtime"]["OutputManager"].present_text(
|
||||||
_("Numlock on"), interrupt=True
|
_("Numlock on"), interrupt=True
|
||||||
|
@ -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.24"
|
version = "2025.07.25"
|
||||||
codeName = "testing"
|
codeName = "testing"
|
||||||
code_name = "testing"
|
code_name = "testing"
|
||||||
|
Reference in New Issue
Block a user