Problem with WebUI focus?

If a plugin with a webview loses focus, one must click the plugin to regain focus before you can interact with the UI. This behaviour can be seen in the IPlugWebUI example. Is there any way around this, or can anyone suggest some areas of the code base to look through?

Solution: acceptsFirstMouse: | Apple Developer Documentation