StartFocus specifies that this widget should get focus when the [Scene] is shown.
()
| 549 | |
| 550 | // StartFocus specifies that this widget should get focus when the [Scene] is shown. |
| 551 | func (wb *WidgetBase) StartFocus() { |
| 552 | em := wb.Events() |
| 553 | if em != nil { |
| 554 | em.SetStartFocus(wb.This.(Widget)) |
| 555 | } |
| 556 | } |
| 557 | |
| 558 | // ContainsFocus returns whether this widget contains the current focus widget. |
| 559 | func (wb *WidgetBase) ContainsFocus() bool { |
no test coverage detected