}
}
+static void _popup_mouse_move_cb(int id, void *data, Evas *e, Evas_Object *obj,
+ Evas_Event_Mouse_Move *ev)
+{
+ struct _priv *priv = data;
+
+ if (!priv || !obj) {
+ _ERR("Invalid argument.");
+ return;
+ }
+
+ if (priv->passcode_entry) {
+ Ecore_IMF_Context *ctx;
+ Ecore_IMF_Input_Panel_State state;
+ ctx = (Ecore_IMF_Context*)elm_entry_imf_context_get(priv->passcode_entry);
+ state = ecore_imf_context_input_panel_state_get(ctx);
+
+ if (state == ECORE_IMF_INPUT_PANEL_STATE_HIDE) {
+ if (!elm_object_focus_get(obj))
+ elm_object_focus_set(obj, EINA_TRUE);
+ }
+ }
+}
+
static input_handler _popup_input_handler = {
- .mouse_move = _mouse_move_cb,
+ .mouse_move = _popup_mouse_move_cb,
.clicked = _popup_clicked_cb,
.key_down = _popup_key_down_cb
};