Indicates that this object is the keyboard event receiver on its canvas.

Changing focus only affects where (key) input events go. There can be only one object focused at any time. If focus is true, obj will be set as the currently focused object and it will receive all keyboard events that are not exclusive key grabs on other objects. See also Efl.Canvas.Object.seat_focus_check, Efl.Canvas.Object.seat_focus_add, Efl.Canvas.Object.seat_focus_del.

Since 1.22


  • focus - true when set as focused or false otherwise.


@property key_focus {
    get {}
    set {}
    values {
        focus: bool;

C signature

Eina_Bool efl_canvas_object_key_focus_get(const Eo *obj);
void efl_canvas_object_key_focus_set(Eo *obj, Eina_Bool focus);

Implemented by