s&box docs
API ReferenceSandbox.UI

public class Sandbox.UI.InputFocus

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

Constructors

Showing 1 constructors

Methods

Showing 3 methods

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

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.

Properties

Showing 2 properties

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

The panel that currently has input focus.

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

The panel that will have the input focus next.

Metadata

FieldValue
NamespaceSandbox.UI
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.UI.InputFocus

On this page