From cc99b14e89eed8d82547e8f0cc0ee4d740683f36 Mon Sep 17 00:00:00 2001 From: onyx-and-iris Date: Thu, 28 Sep 2023 21:35:05 +0100 Subject: [PATCH] define space bind event for bus buttons --- src/nvda_voicemeeter/window.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nvda_voicemeeter/window.py b/src/nvda_voicemeeter/window.py index 1e9ce8b..87a5870 100644 --- a/src/nvda_voicemeeter/window.py +++ b/src/nvda_voicemeeter/window.py @@ -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: