Efl.Ui.Widget.focus_allow

Description

The ability for a widget to be focused.

Unfocusable objects do nothing when programmatically focused. The nearest focusable parent object the one really getting focus. Also, when they receive mouse input, they will get the event, but not take away the focus from where it was previously.

Objects which are meant to be interacted with by input events are created able to be focused, by default. All the others are not.

This property's default value depends on the widget (e.g. a box is not focusable, but a button is).

Since 1.22

Values

  • can_focus - Whether the object is focusable.

Signature

@property focus_allow {
    get {}
    set {}
    values {
        can_focus: bool;
    }
}

C signature

Eina_Bool efl_ui_widget_focus_allow_get(const Eo *obj);
void efl_ui_widget_focus_allow_set(Eo *obj, Eina_Bool can_focus);

Implemented by