adopt the return type for caller to send button in keyboard mode 62/139662/1
authorsungwook79.park <sungwook79.park@samsung.com>
Thu, 20 Jul 2017 04:45:02 +0000 (13:45 +0900)
committersungwook79.park <sungwook79.park@samsung.com>
Thu, 20 Jul 2017 04:45:02 +0000 (13:45 +0900)
Change-Id: I016683204d21ed5c3ef14c0569c41fde9e61a406
Signed-off-by: sungwook79.park <sungwook79.park@samsung.com>
src/w-input-keyboard.cpp

index 9da2294..cd6356f 100755 (executable)
@@ -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);