<div dir="ltr"><div>Hello, <br><br>I wrote an extension (<a href="https://github.com/jdittrich/Office-QDA-TagTree/tree/keyboardShortcut">https://github.com/jdittrich/Office-QDA-TagTree/tree/keyboardShortcut</a>) using PyUNO. I would like to give some functions of it a keyboard shortcut. <br></div><div>However, I can't get the JobExecutor Interface called.<br><br></div><div>It would be of great help, if a person experienced with (Py) UNO could have a look at my approach. I assume it to be a simple misunderstanding of an PyUNO concept (which I could not find out though I read the documentation I found) <br></div><div><br></div><div>WHAT I DID: <br></div><div>1. The define-in-"Accelerators.xcu"-part [1]  worked (The shortcut shows up in the Keyboard-shortcut customization dialog).<br></div><div>3. I implemented an XJobExecutor Interface [2] <br>2. I created an uno service via  g_ImplementationHelper.addImplementation, using the class from 2.  [3] this service should be called by the shortcut<br><br></div><div>PROBLEM: the jobExecutor is never executed when I press the keyboard shortcut. Despite doing a step-by step debugging and turned on debug messages, I was unable to locate a problem. <br><br></div><div>POSSIBLE PROBLEM SOURCES:<br></div><div>* I was unable to find the docuementation for g_ImplementationHelper.addImplementation e.g. if it takes a class or an instance. I tried with both (the inked example is an instance), non worked. <br><br><br>LINKS TO RELEVANT CODE PARTS:<br>[1] <a href="https://github.com/jdittrich/Office-QDA-TagTree/blob/keyboardShortcut/Accelerators.xcu#L10">https://github.com/jdittrich/Office-QDA-TagTree/blob/keyboardShortcut/Accelerators.xcu#L10</a><br>[2] <a href="https://github.com/jdittrich/Office-QDA-TagTree/blob/keyboardShortcut/src/qdacodehelper.py#L215">https://github.com/jdittrich/Office-QDA-TagTree/blob/keyboardShortcut/src/qdacodehelper.py#L215</a><br>[3] <a href="https://github.com/jdittrich/Office-QDA-TagTree/blob/keyboardShortcut/src/qdacodehelper.py#L247">https://github.com/jdittrich/Office-QDA-TagTree/blob/keyboardShortcut/src/qdacodehelper.py#L247</a><br></div><br></div>