# Problem with WebUI focus?

**URL:** <https://iplug2.discourse.group/t/problem-with-webui-focus/910>\
**Category:** Uncategorized\
**Created:** [21 May 2024 21:55 UTC](https://iplug2.discourse.group/t/problem-with-webui-focus/910 "2024-05-21T21:55:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rory](https://avatars.discourse-cdn.com/v4/letter/r/a183cd/32.png) [@rory](https://iplug2.discourse.group/u/rory)\
**Post date:** [21 May 2024 21:55 UTC](https://iplug2.discourse.group/t/problem-with-webui-focus/910/1 "2024-05-21T21:55:08Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![rory](https://avatars.discourse-cdn.com/v4/letter/r/a183cd/32.png) [@rory](https://iplug2.discourse.group/u/rory)\
**Post date:** [26 May 2024 14:35 UTC](https://iplug2.discourse.group/t/problem-with-webui-focus/910/2 "2024-05-26T14:35:02Z")

</div>

Solution: [acceptsFirstMouse: | Apple Developer Documentation](https://developer.apple.com/documentation/appkit/nsview/1483410-acceptsfirstmouse?language=objc)
