# Check which component has focus

**URL:** <https://forum.inductiveautomation.com/t/check-which-component-has-focus/21297>\
**Category:** Ignition\
**Created:** [December 7, 2018, 10:25pm UTC](https://forum.inductiveautomation.com/t/check-which-component-has-focus/21297 "2018-12-07T22:25:50Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [December 7, 2018, 10:35pm UTC](https://forum.inductiveautomation.com/t/check-which-component-has-focus/21297/2 "2018-12-07T22:35:25Z")

</div>

```auto
from java.awt import KeyboardFocusManager
focusedComponent = KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner()

```

---

_[View the full topic](https://forum.inductiveautomation.com/t/check-which-component-has-focus/21297)._
