CanFocus returns whether this node can receive keyboard focus.
()
| 41 | |
| 42 | // CanFocus returns whether this node can receive keyboard focus. |
| 43 | func (wb *WidgetBase) CanFocus() bool { |
| 44 | return wb.Styles.Abilities.HasFlag(abilities.Focusable) |
| 45 | } |
| 46 | |
| 47 | // SetEnabled sets the [states.Disabled] flag to the opposite of the given value. |
| 48 | func (wb *WidgetBase) SetEnabled(enabled bool) *WidgetBase { |
no test coverage detected