Widget.canFocus

Set canFocus property.

  1. bool canFocus [@property getter]
  2. bool canFocus [@property setter]
    class Widget
    @property
    void
    canFocus
    (
    bool propval
    )

Parameters

propval bool

Whether the widget or any of its descendents can accept the input focus.

This property is meant to be set by widget implementations, typically in their instance init function.