forked from enlightenment/efl
Set evas focus for some objects when focused. More will come later.
SVN revision: 48179
This commit is contained in:
parent
b051659645
commit
2bec9f57d8
|
@ -78,9 +78,15 @@ _on_focus_hook(void *data __UNUSED__, Evas_Object *obj)
|
|||
Widget_Data *wd = elm_widget_data_get(obj);
|
||||
if (!wd) return;
|
||||
if (elm_widget_focus_get(obj))
|
||||
edje_object_signal_emit(wd->btn, "elm,action,focus", "elm");
|
||||
{
|
||||
edje_object_signal_emit(wd->btn, "elm,action,focus", "elm");
|
||||
evas_object_focus_set(wd->btn, 1);
|
||||
}
|
||||
else
|
||||
edje_object_signal_emit(wd->btn, "elm,action,unfocus", "elm");
|
||||
{
|
||||
edje_object_signal_emit(wd->btn, "elm,action,unfocus", "elm");
|
||||
evas_object_focus_set(wd->btn, 0);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -63,9 +63,15 @@ _on_focus_hook(void *data __UNUSED__, Evas_Object *obj)
|
|||
Widget_Data *wd = elm_widget_data_get(obj);
|
||||
if (!wd) return;
|
||||
if (elm_widget_focus_get(obj))
|
||||
edje_object_signal_emit(wd->btn, "elm,action,focus", "elm");
|
||||
{
|
||||
edje_object_signal_emit(wd->btn, "elm,action,focus", "elm");
|
||||
evas_object_focus_set(wd->btn, 1);
|
||||
}
|
||||
else
|
||||
edje_object_signal_emit(wd->btn, "elm,action,unfocus", "elm");
|
||||
{
|
||||
edje_object_signal_emit(wd->btn, "elm,action,unfocus", "elm");
|
||||
evas_object_focus_set(wd->btn, 0);
|
||||
}
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -224,8 +224,10 @@ _on_focus_hook(void *data __UNUSED__, Evas_Object *obj)
|
|||
{
|
||||
Widget_Data *wd = elm_widget_data_get(obj);
|
||||
if (!wd) return;
|
||||
// if (elm_widget_focus_get(obj))
|
||||
// elm_widget_focus_steal(wd->entry);
|
||||
if (elm_widget_focus_get(obj))
|
||||
evas_object_focus_set(wd->scr, 1);
|
||||
else
|
||||
evas_object_focus_set(wd->scr, 0);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue