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/ui/window.py
258 258
            skip = self.HandleHistory(modifiers, key)
259 259

  
260 260
        # Look for matching macros
261
        for code, macro in self.engine.macros.items():
261
        for macro in self.client.macros:
262
            code = (macro.key, macro.modifiers)
262 263
            if code == (key, modifiers):
263 264
                macro.execute(self.engine, self.client)
264 265

  

Also available in: Unified diff