forked from enlightenment/efl
parent
cbbe439629
commit
c86d47ae59
|
@ -18,21 +18,21 @@ evas_object_focus_set(Evas_Object *obj, Eina_Bool focus)
|
|||
|
||||
if (focus)
|
||||
{
|
||||
if (obj->focused) goto end;
|
||||
if (obj->layer->evas->focused)
|
||||
evas_object_focus_set(obj->layer->evas->focused, 0);
|
||||
obj->focused = 1;
|
||||
obj->layer->evas->focused = obj;
|
||||
evas_object_event_callback_call(obj, EVAS_CALLBACK_FOCUS_IN, NULL);
|
||||
if (obj->focused) goto end;
|
||||
if (obj->layer->evas->focused)
|
||||
evas_object_focus_set(obj->layer->evas->focused, 0);
|
||||
obj->focused = 1;
|
||||
obj->layer->evas->focused = obj;
|
||||
evas_object_event_callback_call(obj, EVAS_CALLBACK_FOCUS_IN, NULL);
|
||||
evas_event_callback_call(obj->layer->evas,
|
||||
EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_IN, obj);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!obj->focused) goto end;
|
||||
obj->focused = 0;
|
||||
obj->layer->evas->focused = NULL;
|
||||
evas_object_event_callback_call(obj, EVAS_CALLBACK_FOCUS_OUT, NULL);
|
||||
if (!obj->focused) goto end;
|
||||
obj->focused = 0;
|
||||
obj->layer->evas->focused = NULL;
|
||||
evas_object_event_callback_call(obj, EVAS_CALLBACK_FOCUS_OUT, NULL);
|
||||
evas_event_callback_call(obj->layer->evas,
|
||||
EVAS_CALLBACK_CANVAS_OBJECT_FOCUS_OUT, obj);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue