Widget.activate

For widgets that can be “activated” (buttons, menu items, etc.) this function activates them. Activation is what happens when you press Enter on a widget during key navigation. If widget isn't activatable, the function returns FALSE.

class Widget
bool
activate
()

Return Value

Type: bool

TRUE if the widget was activatable