From 52b1c6d632096b4ad35ad1127cece256f0b648f4 Mon Sep 17 00:00:00 2001 From: SubodhKumar Date: Sat, 18 Feb 2017 19:13:44 +0530 Subject: [PATCH] elm_entry: Set the type to cbhm when dbus is initiated. Issue: By the time entry got focused, job has not initiated the dbus causing not setting type to cbhm. Change-Id: I25282eeb2280b7bfde642651b66b2bd6a951c834 --- src/lib/elm_entry.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c index 3fef72f..96d106f 100644 --- a/src/lib/elm_entry.c +++ b/src/lib/elm_entry.c @@ -202,6 +202,14 @@ _init_eldbus_job(Evas_Object *obj) ELM_ENTRY_DATA_GET(obj, sd); _cbhm_eldbus_init(obj); + /* If entry got focused by the time job has not initiated the dbus */ + if (elm_widget_focus_get(obj)) + { + if (sd->cnp_mode != ELM_CNP_MODE_MARKUP) + eldbus_proxy_call(sd->cbhm_proxy, "CbhmSetInputTextType", NULL, NULL, -1, "s", "text"); + else + eldbus_proxy_call(sd->cbhm_proxy, "CbhmSetInputTextType", NULL, NULL, -1, "s", "image"); + } sd->cbhm_init_done = EINA_TRUE; sd->cbhm_init_job = NULL; } -- 2.7.4