How do I shift the focus from the plugin over to the app after I’ve executed some actions on the document through the plugin? I want to avoid having to click on the document every time I have to undo. Currently the focus still stays on the plugin after I’ve clicked a button in it - hence “command + z” doesn’t work.
Solved
How does one handle undo action?
Best answer by tank666
From ui.html:
window.top.focus();
// Or
window.parent.parent.focus();
This topic has been closed for comments
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.