summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJunghyun Kim <jh1114.kim@samsung.com>2012-08-29 21:07:05 +0900
committerJunghyun Kim <jh1114.kim@samsung.com>2012-08-29 21:07:05 +0900
commitc0ba7a1c167608d47661d632ddd9f208d8cb068d (patch)
tree2da7ce1929f11ce1629c73eaf80379bfea5f80f1 /src
parenta15e0cf94085f9107889d9d9957f87e2915cf253 (diff)
downloadsmartsearch-c0ba7a1c167608d47661d632ddd9f208d8cb068d.tar.gz
smartsearch-c0ba7a1c167608d47661d632ddd9f208d8cb068d.tar.bz2
smartsearch-c0ba7a1c167608d47661d632ddd9f208d8cb068d.zip
Change code to show keypad when user press eraser
Diffstat (limited to 'src')
-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");