From ef5da1fb757f5035a36869652cd6d561f829f075 Mon Sep 17 00:00:00 2001 From: "sungwook79.park" Date: Thu, 20 Jul 2017 13:45:02 +0900 Subject: [PATCH] adopt the return type for caller to send button in keyboard mode Change-Id: I016683204d21ed5c3ef14c0569c41fde9e61a406 Signed-off-by: sungwook79.park --- src/w-input-keyboard.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/w-input-keyboard.cpp b/src/w-input-keyboard.cpp index 9da2294..cd6356f 100755 --- a/src/w-input-keyboard.cpp +++ b/src/w-input-keyboard.cpp @@ -34,7 +34,7 @@ bool input_keyboard_init(app_control_h app_control) int ret = -1; char *default_text = NULL; char *guide_text = NULL; - char *return_key_type = NULL; + char *return_key_type = "SEND"; char *max_text_length = NULL; input_keyboard_deinit(); @@ -72,7 +72,7 @@ void input_keyboard_deinit(void) g_input_keyboard_data.default_text = NULL; g_input_keyboard_data.guide_text = NULL; - g_input_keyboard_data.return_key_type = NULL; + g_input_keyboard_data.return_key_type = "SEND"; g_input_keyboard_data.max_text_length = KEYBOARD_EDITOR_CHAR_COUNT_MAX; return; @@ -170,7 +170,7 @@ void create_fullscreen_editor(void *data) elm_box_pack_end(box, entry); Evas_Object *btn = elm_button_add(box); - elm_object_text_set(btn, "SEND"); + elm_object_text_set(btn, g_input_keyboard_data.return_key_type); evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, 0.5); evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL); evas_object_smart_callback_add(btn, "clicked", btn_clicked_cb, NULL); -- 2.7.4