# Sandbox.UI.InputFocus

Input focus in the game's UI. Focus belongs to a UI system, and a panel always uses its own -
see [Sandbox.UI.Panel.Focus](/api/Sandbox.UI.Panel/Focus). This is the shorthand for the game's, which is the only one most
code has.

- Kind: class
- Namespace: `Sandbox.UI`
- Assembly: `Sandbox.Engine`

## Constructors

- [`InputFocus`](/api/Sandbox.UI.InputFocus/.ctor)

## Properties

- [`Current`](/api/Sandbox.UI.InputFocus/Current): The panel that currently has input focus.
- [`Next`](/api/Sandbox.UI.InputFocus/Next): The panel that will have the input focus next.

## Methods

- [`Clear`](/api/Sandbox.UI.InputFocus/Clear): Clear focus away from this panel.
- [`Set`](/api/Sandbox.UI.InputFocus/Set): Set the focus to this panel (or its nearest ancestor with AcceptsFocus). Note that [Sandbox.UI.InputFocus.Current](/api/Sandbox.UI.InputFocus/Current) won't change until the next frame.
