UiElement.focus

Set the element to take focus so any key press or key release events for the application are sent to that element. It is also possible to force the operating system to apply focus to the element immediately.

class UiElement
focus
(
this T
)
(
bool force = false
)

Parameters

force bool

Whether or not to force the focus.

Return Value

Type: auto

This element to aid method chaining.

Meta