summaryrefslogtreecommitdiff
path: root/src/search_bar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/search_bar.cpp')
-rwxr-xr-xsrc/search_bar.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/search_bar.cpp b/src/search_bar.cpp
index 80bfa59..b67c734 100755
--- a/src/search_bar.cpp
+++ b/src/search_bar.cpp
@@ -121,6 +121,12 @@ static void __search_searchbar_eraser_clicked_cb(void *data, Evas_Object *obj, c
elm_entry_entry_set(ad->search_entry, "");
+ Ecore_IMF_Context *imf_context = (Ecore_IMF_Context *)elm_entry_imf_context_get(ad->search_entry);
+
+ if (imf_context) {
+ ecore_imf_context_input_panel_show(imf_context);
+ }
+
SEARCH_FUNC_END;
}
@@ -270,6 +276,10 @@ static Evas_Object* __search_searchbar_create(void *data)
elm_object_part_content_set(search_layout, "searchbar_area_category", cate_btn);
+ /* Make Search entry with cancel button */
+ ad->search_bar = elm_layout_add(search_layout);
+ elm_layout_theme_set(ad->search_bar , "layout", "searchbar", "cancel_button");
+
ad->search_cancel_btn = elm_button_add(ad->search_bar);
elm_object_part_content_set(ad->search_bar, "button_cancel", ad->search_cancel_btn);
elm_object_style_set(ad->search_cancel_btn, "searchbar/default");