~~Title: Efl.Canvas.Object.key_focus~~ ====== Efl.Canvas.Object.key_focus ====== ===== Description ===== %%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 %%[[:develop:api:efl:canvas:object:method:seat_focus_check|Efl.Canvas.Object.seat_focus_check]]%%, %%[[:develop:api:efl:canvas:object:method:seat_focus_add|Efl.Canvas.Object.seat_focus_add]]%%, %%[[:develop:api:efl:canvas:object:method:seat_focus_del|Efl.Canvas.Object.seat_focus_del]]%%.%% //Since 1.22// {{page>:develop:api-include:efl:canvas:object:property:key_focus:description&nouser&nolink&nodate}} ===== Values ===== * **focus** - %%%%''true''%% when set as focused or %%''false''%% otherwise.%% ===== Signature ===== @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 ===== * [[:develop:api:efl:canvas:object:property:key_focus|Efl.Canvas.Object.key_focus]]