The command handler only acts on input commands when the canvas has focus. I would like to propagate commands to the command handler even if the canvas does not have focus, e.g. when another html element is selected or clicked last. Would this be possible? I could add event listeners to the document to catch keyboard events and then send these to the
diagram.commandHandler I suppose? What would be the best way of doing this? Or would there be another preferred way?