mirror of
https://github.com/onyx-and-iris/nvda-voicemeeter.git
synced 2024-11-22 18:00:50 +00:00
implements focus in event for tabgroup
This commit is contained in:
parent
7d89b0c4ae
commit
9adbf71494
@ -43,6 +43,9 @@ class NVDAVMWindow(psg.Window):
|
||||
def register_events(self):
|
||||
"""Registers events for widgets"""
|
||||
|
||||
# TABS
|
||||
self["tabs"].bind("<FocusIn>", "||FOCUS IN")
|
||||
|
||||
# Hardware Out
|
||||
for i in range(self.vm.kind.phys_out):
|
||||
self[f"HARDWARE OUT||A{i + 1}"].bind("<FocusIn>", "||FOCUS IN")
|
||||
@ -86,10 +89,14 @@ class NVDAVMWindow(psg.Window):
|
||||
if event in (psg.WIN_CLOSED, "Exit"):
|
||||
break
|
||||
elif event == "tabs":
|
||||
self.nvda.speak(f"switched to tab {values['tabs']}")
|
||||
self.nvda.speak(f"tab {values['tabs']}")
|
||||
continue
|
||||
|
||||
match parsed_cmd := self.parser.match.parseString(event):
|
||||
# Tabs
|
||||
case [["tabs"], ["FOCUS", "IN"]]:
|
||||
self.nvda.speak(f"tab {values['tabs']}")
|
||||
|
||||
# Hardware out
|
||||
case [["HARDWARE", "OUT"], [key]]:
|
||||
selection = values[f"HARDWARE OUT||{key}"]
|
||||
|
Loading…
Reference in New Issue
Block a user