Widget.focusOnClick

bool focusOnClick() @property

Get focusOnClick property.

Returns

Whether the widget should grab focus when it is clicked with the mouse.

This property is only relevant for widgets that can take focus.

void focusOnClick(bool propval) @property

Set focusOnClick property.

Parameters

propvalWhether the widget should grab focus when it is clicked with the mouse. This property is only relevant for widgets that can take focus.