X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fw-input-keyboard.cpp;h=5e9ae0959a96748b1f640ad0bc628d0f46a05597;hb=7c842ecfc058bca47c410e2f3a5d21c45d33db1f;hp=6c359c9b208a0e16325d3d13c3f5e487c21662b2;hpb=3526540a18c70afd9c305425a8f1163f786d2f92;p=platform%2Fcore%2Fuifw%2Finputdelegator.git diff --git a/src/w-input-keyboard.cpp b/src/w-input-keyboard.cpp index 6c359c9..5e9ae09 100755 --- a/src/w-input-keyboard.cpp +++ b/src/w-input-keyboard.cpp @@ -34,9 +34,9 @@ bool input_keyboard_init(app_control_h app_control) int ret = -1; char *default_text = NULL; char *guide_text = NULL; - char *return_key_type = (char *)"SEND"; + char *return_key_type = _("IDS_AMEMO_BUTTON_SEND"); char *max_text_length = NULL; - char *cursor_position_set = (char *)"0"; + char *cursor_position_set = NULL; input_keyboard_deinit(); @@ -55,10 +55,12 @@ bool input_keyboard_init(app_control_h app_control) ret = app_control_get_extra_data(app_control, "max_text_length", &max_text_length); if (ret == APP_CONTROL_ERROR_NONE) { g_input_keyboard_data.max_text_length = atoi(max_text_length); + free(max_text_length); } ret = app_control_get_extra_data(app_control, "cursor_position_set", &cursor_position_set); if (ret == APP_CONTROL_ERROR_NONE) { g_input_keyboard_data.cursor_position_set = atoi(cursor_position_set); + free(cursor_position_set); } return true; @@ -77,7 +79,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 = (char *)"SEND"; + g_input_keyboard_data.return_key_type = _("IDS_AMEMO_BUTTON_SEND"); g_input_keyboard_data.max_text_length = KEYBOARD_EDITOR_CHAR_COUNT_MAX; g_input_keyboard_data.cursor_position_set = 0; @@ -94,7 +96,7 @@ void exit_keyboard() } const char *getText = elm_entry_entry_get(entry); - LOGD("button key clicked!! : getText = %s", getText); + SECURE_LOGD("button key clicked!! : getText = %s", getText); char cursorPosition[512]; snprintf(cursorPosition, sizeof(cursorPosition), "%d", elm_entry_cursor_pos_get(entry));