WithFocus.currentFocus

Change the currently focused node to another.

This function may frequently be passed null with the intent of clearing the focused node.

  1. inout(Focusable) currentFocus()
  2. Focusable currentFocus(Focusable newValue)
    interface WithFocus
    nothrow
    currentFocus

Parameters

newValue Focusable

Node to assign focus to.

Return Value

Type: Focusable

Node that was focused, to allow chaining assignments.

Meta