Api Sandbox UI InputFocus
class

InputFocus

public class InputFocus

Handles input focus for Panels.

Constructors

InputFocus()

Properties

Name Type Description
Current static Panel The panel that currently has input focus.
Next static Panel The panel that will have the input focus next.

Methods

static Boolean Set(Panel panel)

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

static Boolean Clear(Panel panel)

Clear focus away from this panel.

static Boolean Clear()

Clear keyboard focus

Assembly: Sandbox.Engine Namespace: Sandbox.UI Full Name: Sandbox.UI.InputFocus