Found some stuff I missed on the initial attempt to get this working.
This commit is contained in:
parent
9562c08130
commit
7605e7d60f
@ -47,17 +47,17 @@ class SimplePluginSystem(GObject.Object, Cthulhu.PluginInterface):
|
||||
# Create key binding based on modifier combinations
|
||||
modifiers = Cthulhu.keybindings.defaultModifierMask
|
||||
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']:
|
||||
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']:
|
||||
mask = Cthulhu.keybindings.ORCA_ALT_MODIFIER_MASK
|
||||
mask = Cthulhu.keybindings.CTHULHU_ALT_MODIFIER_MASK
|
||||
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']:
|
||||
mask = Cthulhu.keybindings.SHIFT_ALT_MODIFIER_MASK
|
||||
else:
|
||||
mask = Cthulhu.keybindings.ORCA_MODIFIER_MASK
|
||||
mask = Cthulhu.keybindings.CTHULHU_MODIFIER_MASK
|
||||
|
||||
self.my_key_bindings.add(
|
||||
Cthulhu.keybindings.KeyBinding(
|
||||
|
Loading…
Reference in New Issue
Block a user