I have hit a snag. I have a contraption I want to be able to trigger with a keypress, so I put a secret button inside it, and when you set the shortcut attribute on the contraption, it sets the shortcut attribute on the secret button. This works pefectly - keypresses outside the contraption trigger the secret button inside it.
Unfortunately it also triggers the behaviour described above - clicking on the card where the secret button would be also triggers it, even if that area is supposed to be some other widget. And unlike the above workaround, setting the secret button to “Locked” or “Show None” deactivates the shortcut behaviour.
I suppose the workaround to the workaround would be to remove the shortcut feature from the contraption, and just add buttons to the card directly… and hide them by moving them off the side of the screen, rather than with “Show None”.