API ReferenceSandbox.UI

InputFocusclass

Handles input focus for `Sandbox.UI.Panel`s.

objectInputFocus
Namespace
Sandbox.UI
Assembly
Sandbox.Engine
Declaration
public class Sandbox.UI.InputFocus

Constructors1

Showing 1 constructors

Methods3

Showing 3 methods

public static bool Set(Sandbox.UI.Panel panel)PUBLICSTATIC

Set the focus to this panel (or its nearest ancestor with AcceptsFocus). Note that `Sandbox.UI.InputFocus.Current` won't change until the next frame.

ParameterTypeDescription
panelPanel
Returns:bool

Properties2

Showing 2 properties

public static Sandbox.UI.Panel Sandbox.UI.InputFocus.Current { get; set; }PUBLICSTATICGETSET

The panel that currently has input focus.

Returns:Panel

public static Sandbox.UI.Panel Sandbox.UI.InputFocus.Next { get; set; }PUBLICSTATICGETSET

The panel that will have the input focus next.

Returns:Panel

On this page