define space bind event for bus buttons

This commit is contained in:
onyx-and-iris 2023-09-28 21:35:05 +01:00
parent 23458debaa
commit cc99b14e89

View File

@ -1021,8 +1021,8 @@ class NVDAVMWindow(psg.Window):
if param == "MODE": 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: else:
self.nvda.speak(f"{label} bus{param} {'on' if val else 'off'}") self.nvda.speak(f"{label} {param} {'on' if val else 'off'}")
case [["BUS", index], [param], ["KEY", "ENTER"]]: case [["BUS", index], [param], ["KEY", "SPACE" | "ENTER"]]:
if param == "MODE": if param == "MODE":
util.open_context_menu_for_buttonmenu(self, f"BUS {index}||MODE") util.open_context_menu_for_buttonmenu(self, f"BUS {index}||MODE")
else: else: