Inhibit keyboard shortcuts in Studio
Alessandro Mastronardi
Posts: 2,621
I remapped keyboard shortcuts so that for example, when the user press , the plugin performs an undo. Unfortunately the sequence is executed also in Studio, and I'd like to deny that. Couldn't find any info in the SDK, somebody knows how to do it?
Comments
That doesn't happen for me in a modal dialogue, nor even in a text box (click on a selected node to make the name editable, type something, ctrl-z will undo the typing but no changes in the scene). I can also undo changes in the script IDE pane without affecting the cene. In all those cases, of course, focus is clearly set to something other than the viewport - I'm not sure that clicking a button leaves focus in the used pane, so that may be your issue.
Agreed on that, and infact the issue occurs with non modal dialogues.