forked from enlightenment/efl
parent
9287f01020
commit
c67ff552a6
|
@ -118,14 +118,12 @@ _on_focus_hook(void *data, Evas_Object *obj)
|
||||||
evas_object_focus_set(wd->ent, 1);
|
evas_object_focus_set(wd->ent, 1);
|
||||||
edje_object_signal_emit(wd->ent, "elm,action,focus", "elm");
|
edje_object_signal_emit(wd->ent, "elm,action,focus", "elm");
|
||||||
elm_win_keyboard_mode_set(top, ELM_WIN_KEYBOARD_ON);
|
elm_win_keyboard_mode_set(top, ELM_WIN_KEYBOARD_ON);
|
||||||
printf("foc on %p\n", obj);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
edje_object_signal_emit(wd->ent, "elm,action,unfocus", "elm");
|
edje_object_signal_emit(wd->ent, "elm,action,unfocus", "elm");
|
||||||
evas_object_focus_set(wd->ent, 0);
|
evas_object_focus_set(wd->ent, 0);
|
||||||
elm_win_keyboard_mode_set(top, ELM_WIN_KEYBOARD_OFF);
|
elm_win_keyboard_mode_set(top, ELM_WIN_KEYBOARD_OFF);
|
||||||
printf("foc off %p\n", obj);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -574,10 +574,6 @@ elm_win_inwin_activate(Evas_Object *obj)
|
||||||
evas_object_raise(obj);
|
evas_object_raise(obj);
|
||||||
evas_object_show(obj);
|
evas_object_show(obj);
|
||||||
edje_object_signal_emit(wd->frm, "elm,action,show", "elm");
|
edje_object_signal_emit(wd->frm, "elm,action,show", "elm");
|
||||||
printf("clear parent focus %p [%p]\n",
|
|
||||||
elm_widget_parent_get(obj),
|
|
||||||
elm_widget_parent_get(elm_widget_parent_get(obj))
|
|
||||||
);
|
|
||||||
elm_widget_focused_object_clear(elm_widget_parent_get(obj));
|
elm_widget_focused_object_clear(elm_widget_parent_get(obj));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue