Found some stuff I missed on the initial attempt to get this working.

This commit is contained in:
Storm Dragon 2024-10-23 09:37:42 -04:00
parent 9562c08130
commit 7605e7d60f

View File

@ -47,17 +47,17 @@ class SimplePluginSystem(GObject.Object, Cthulhu.PluginInterface):
# Create key binding based on modifier combinations # Create key binding based on modifier combinations
modifiers = Cthulhu.keybindings.defaultModifierMask modifiers = Cthulhu.keybindings.defaultModifierMask
if settings['shiftkey'] and not settings['ctrlkey'] and not settings['altkey']: if settings['shiftkey'] and not settings['ctrlkey'] and not settings['altkey']:
mask = Cthulhu.keybindings.ORCA_SHIFT_MODIFIER_MASK mask = Cthulhu.keybindings.CTHULHU_SHIFT_MODIFIER_MASK
elif not settings['shiftkey'] and settings['ctrlkey'] and not settings['altkey']: elif not settings['shiftkey'] and settings['ctrlkey'] and not settings['altkey']:
mask = Cthulhu.keybindings.ORCA_CTRL_MODIFIER_MASK mask = Cthulhu.keybindings.CTHULHU_CTRL_MODIFIER_MASK
elif not settings['shiftkey'] and not settings['ctrlkey'] and settings['altkey']: elif not settings['shiftkey'] and not settings['ctrlkey'] and settings['altkey']:
mask = Cthulhu.keybindings.ORCA_ALT_MODIFIER_MASK mask = Cthulhu.keybindings.CTHULHU_ALT_MODIFIER_MASK
elif not settings['shiftkey'] and settings['ctrlkey'] and settings['altkey']: elif not settings['shiftkey'] and settings['ctrlkey'] and settings['altkey']:
mask = Cthulhu.keybindings.ORCA_CTRL_ALT_MODIFIER_MASK mask = Cthulhu.keybindings.CTHULHU_CTRL_ALT_MODIFIER_MASK
elif settings['shiftkey'] and not settings['ctrlkey'] and settings['altkey']: elif settings['shiftkey'] and not settings['ctrlkey'] and settings['altkey']:
mask = Cthulhu.keybindings.SHIFT_ALT_MODIFIER_MASK mask = Cthulhu.keybindings.SHIFT_ALT_MODIFIER_MASK
else: else:
mask = Cthulhu.keybindings.ORCA_MODIFIER_MASK mask = Cthulhu.keybindings.CTHULHU_MODIFIER_MASK
self.my_key_bindings.add( self.my_key_bindings.add(
Cthulhu.keybindings.KeyBinding( Cthulhu.keybindings.KeyBinding(