mirror of
https://github.com/onyx-and-iris/nvda-voicemeeter.git
synced 2026-04-07 18:03:35 +00:00
Compare commits
3 Commits
add-param-
...
v.0.2.2.a1
| Author | SHA1 | Date | |
|---|---|---|---|
| 645361c731 | |||
| 6baa0000c8 | |||
| c94d763569 |
@@ -1,6 +1,6 @@
|
|||||||
[project]
|
[project]
|
||||||
name = "nvda_voicemeeter"
|
name = "nvda_voicemeeter"
|
||||||
version = "0.2.2"
|
version = "0.2.2a1"
|
||||||
description = "A Voicemeeter app compatible with NVDA"
|
description = "A Voicemeeter app compatible with NVDA"
|
||||||
authors = [
|
authors = [
|
||||||
{ name = "onyx-and-iris", email = "code@onyxandiris.online" },
|
{ name = "onyx-and-iris", email = "code@onyxandiris.online" },
|
||||||
|
|||||||
@@ -137,6 +137,8 @@ class NVDAVMWindow(psg.Window):
|
|||||||
self.bind("<Control-KeyPress-Tab>", "CTRL-TAB")
|
self.bind("<Control-KeyPress-Tab>", "CTRL-TAB")
|
||||||
self.bind("<Control-Shift-KeyPress-Tab>", "CTRL-SHIFT-TAB")
|
self.bind("<Control-Shift-KeyPress-Tab>", "CTRL-SHIFT-TAB")
|
||||||
self.bind("<Control-a>", "CTRL-A")
|
self.bind("<Control-a>", "CTRL-A")
|
||||||
|
for i in range(1, 10):
|
||||||
|
self.bind(f"<Control-Key-{i}>", f"CTRL-{i}")
|
||||||
|
|
||||||
# Hardware In
|
# Hardware In
|
||||||
for i in range(self.vm.kind.phys_in):
|
for i in range(self.vm.kind.phys_in):
|
||||||
@@ -413,6 +415,35 @@ class NVDAVMWindow(psg.Window):
|
|||||||
self["tabgroup"].set_focus()
|
self["tabgroup"].set_focus()
|
||||||
self.nvda.speak(f"{values['tabgroup']}")
|
self.nvda.speak(f"{values['tabgroup']}")
|
||||||
|
|
||||||
|
# Quick Navigation
|
||||||
|
case ["CTRL-1" | "CTRL-2" | "CTRL-3" | "CTRL-4" | "CTRL-5" | "CTRL-6" | "CTRL-7" | "CTRL-8" as bind]:
|
||||||
|
key, index = bind.split("-")
|
||||||
|
match values["tabgroup"]:
|
||||||
|
case "tab||Physical Strip":
|
||||||
|
self[f"STRIP {int(index) - 1}||A1"].set_focus()
|
||||||
|
if (
|
||||||
|
self.find_element_with_focus() is None
|
||||||
|
or self.find_element_with_focus().Key != f"STRIP {int(index) - 1}||A1"
|
||||||
|
):
|
||||||
|
self[f"STRIP {int(index) - 1}||SLIDER GAIN"].set_focus()
|
||||||
|
case "tab||Virtual Strip":
|
||||||
|
index = int(index) + self.kind.phys_in
|
||||||
|
if index > self.kind.num_strip:
|
||||||
|
continue
|
||||||
|
self[f"STRIP {index - 1}||A1"].set_focus()
|
||||||
|
if (
|
||||||
|
self.find_element_with_focus() is None
|
||||||
|
or self.find_element_with_focus().Key != f"STRIP {int(index) - 1}||A1"
|
||||||
|
):
|
||||||
|
self[f"STRIP {int(index) - 1}||SLIDER GAIN"].set_focus()
|
||||||
|
case "tab||Buses":
|
||||||
|
self[f"BUS {int(index) - 1}||MONO"].set_focus()
|
||||||
|
if (
|
||||||
|
self.find_element_with_focus() is None
|
||||||
|
or self.find_element_with_focus().Key != f"BUS {int(index) - 1}||MONO"
|
||||||
|
):
|
||||||
|
self[f"BUS {int(index) - 1}||SLIDER GAIN"].set_focus()
|
||||||
|
|
||||||
# Rename popups
|
# Rename popups
|
||||||
case ["F2:113"]:
|
case ["F2:113"]:
|
||||||
tab = values["tabgroup"]
|
tab = values["tabgroup"]
|
||||||
|
|||||||
Reference in New Issue
Block a user