Project

Profile

Help

Revision e8ebc4c5

Added by Vincent Le Goff over 4 years ago

Add the macros in the client (not the engine itself)

View differences:

src/sharp/functions/macro.py
40 40
        """Creates the macro."""
41 41
        key, modifiers = key_code(shortcut)
42 42
        macro = ObjMacro(key, modifiers, action, self.sharp_engine)
43
        self.sharp_engine.engine.macros[key, modifiers] = macro
43
        self.client.macros.append(macro)

Also available in: Unified diff