# Vision Client Keystroke Scripts and F2

**URL:** <https://forum.inductiveautomation.com/t/vision-client-keystroke-scripts-and-f2/113930>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [February 12, 2026, 3:28pm UTC](https://forum.inductiveautomation.com/t/vision-client-keystroke-scripts-and-f2/113930 "2026-02-12T15:28:23Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [March 12, 2026, 3:58pm UTC](https://forum.inductiveautomation.com/t/vision-client-keystroke-scripts-and-f2/113930/5 "2026-03-12T15:58:26Z")

</div>

You might be able to do something global (without requiring individual component changes) by accessing the KeyboardFocusManager:

> **[Set - KeyboardFocusManager (Java SE 21 & JDK 21)](https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/java/awt/KeyboardFocusManager.html#setDefaultFocusTraversalKeys(int,java.util.Set))**
>
> If a SecurityManager is installed, the calling thread must be granted the AWTPermission "replaceKeyboardFocusManager" in order to replace the the current KeyboardFocusManager. If this permission is not granted, this method will throw a...

> [@Check which component has focus](https://forum.inductiveautomation.com/t/check-which-component-has-focus/21297/2):
>
> from java.awt import KeyboardFocusManager focusedComponent = KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner()

---

_[View the full topic](https://forum.inductiveautomation.com/t/vision-client-keystroke-scripts-and-f2/113930)._
