fix bug bind overrides

This commit is contained in:
onyx-and-iris 2023-09-27 19:18:52 +01:00
parent 050e0336b8
commit ab728f0a32

View File

@ -41,7 +41,7 @@ def _make_gestures(kind_id):
for i in range(1, kind.num_strip + 1): for i in range(1, kind.num_strip + 1):
defaults[f"kb:NVDA+alt+{i}"] = "index" defaults[f"kb:NVDA+alt+{i}"] = "index"
for i in range(1, kind.phys_out + kind.virt_out + 1): for i in range(1, kind.phys_out + kind.virt_out + 1):
defaults[f"kb:NVDA+alt+{i}"] = "bus_assignment" defaults[f"kb:NVDA+shift+{i}"] = "bus_assignment"
abc = config.get("keybinds") abc = config.get("keybinds")
if abc: if abc:
overrides = {f"kb:{util.remove_prefix(k, 'kb:')}": v for k, v in abc.items()} overrides = {f"kb:{util.remove_prefix(k, 'kb:')}": v for k, v in abc.items()}