mirror of
https://github.com/onyx-and-iris/nvda-voicemeeter.git
synced 2024-11-22 10:00:46 +00:00
define space bind event for bus buttons
This commit is contained in:
parent
23458debaa
commit
cc99b14e89
@ -1019,10 +1019,10 @@ class NVDAVMWindow(psg.Window):
|
||||
label = self.cache["labels"][f"BUS {index}||LABEL"]
|
||||
val = self.cache["bus"][f"BUS {index}||{param}"]
|
||||
if param == "MODE":
|
||||
self.nvda.speak(f"{label} bus{param} {util._bus_mode_map[val]}")
|
||||
self.nvda.speak(f"{label} bus {param} {util._bus_mode_map[val]}")
|
||||
else:
|
||||
self.nvda.speak(f"{label} bus{param} {'on' if val else 'off'}")
|
||||
case [["BUS", index], [param], ["KEY", "ENTER"]]:
|
||||
self.nvda.speak(f"{label} {param} {'on' if val else 'off'}")
|
||||
case [["BUS", index], [param], ["KEY", "SPACE" | "ENTER"]]:
|
||||
if param == "MODE":
|
||||
util.open_context_menu_for_buttonmenu(self, f"BUS {index}||MODE")
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user