<li><code>Go</code>: Set key label to <strong>Go</strong></li>
</ul>
</td>
- <td rowspan="2">This key is optional, and <strong>it is supported since Tizen 4.0.</strong></td>
+ <td rowspan="4">This key is optional, and <strong>it is supported since Tizen 4.0.</strong></td>
</tr>
<tr>
<td><code>APP_CONTROL_DATA_INPUT_MAX_TEXT_LENGTH</code></td>
<td>The maximum text length allowed in the keyboard input type. This key must be passed as a string.</td>
</tr>
<tr>
+ <td><code>APP_CONTROL_DATA_INPUT_CURSOR_POSITION_SET</code></td>
+ <td>The position where the cursor is to be set in the keyboard input type. This key must be passed as a string.</td>
+ </tr>
+ <tr>
+ <td><code>APP_CONTROL_DATA_INPUT_CURSOR_POSITION_GET</code></td>
+ <td>The current position of the cursor in the keyboard input type. This key must be passed as a string.</td>
+ </tr>
+ <tr>
<td><code>APP_CONTROL_DATA_INPUT_REPLY_TYPE</code></td>
<td>The reply type. This key must be passed as a string. The available values are:
<ul>
app_control_add_extra_data(app_control, APP_CONTROL_DATA_INPUT_RETURNKEY_TYPE, "Done");
/* Extra data for setting limit of text length */
app_control_add_extra_data(app_control, APP_CONTROL_DATA_INPUT_MAX_TEXT_LENGTH, "10");
+ /* Set cursor position */
+ app_control_add_extra_data(app_control, APP_CONTROL_DATA_INPUT_CURSOR_POSITION_SET, "3");
app_control_send_launch_request(app_control, input_selector_result, NULL);
app_control_destroy(app_control);
}
{
char *value;
char *type;
+ char *cursor_position;
if (result == APP_CONTROL_RESULT_SUCCEEDED) {
int ret = app_control_get_extra_data(reply, APP_CONTROL_DATA_TEXT, &value);
if (ret == APP_CONTROL_ERROR_NONE) {
}
/* To get input type of result from input delegator */
app_control_get_extra_data(reply, APP_CONTROL_DATA_INPUT_REPLY_TYPE, &type);
+ ret = app_control_get_extra_data(reply, APP_CONTROL_DATA_INPUT_CURSOR_POSITION_GET, &cursor_position);
+ if (ret == APP_CONTROL_ERROR_NONE)
+ {
+ dlog_print(DLOG_INFO, LOG_TAG, "[cursor_position_get] Succeeded: cursor_position(%s)", cursor_position);
+ elm_entry_cursor_pos_set(entry, atoi(cursor_position));
+ }
char **path_array = NULL;
int path_array_len = -1;
ret = app_control_get_extra_data_array(reply, APP_CONTROL_DATA_PATH, &path_array, &path_array_len);
<li><code>Go</code>: Set key label to <strong>Go</strong></li>
</ul>
</td>
- <td rowspan="2">This key is optional, and <strong>it is supported since Tizen 4.0.</strong></td>
+ <td rowspan="4">This key is optional, and <strong>it is supported since Tizen 4.0.</strong></td>
</tr>
<tr>
<td><code>http://tizen.org/appcontrol/data/input_max_text_length</code></td>
<td>The maximum text length allowed in the keyboard input type. This key must be passed as a string.</td>
</tr>
<tr>
+ <td><code>http://tizen.org/appcontrol/data/input_cursor_position_set</code></td>
+ <td>The position where the cursor is to be set in the keyboard input type. This key must be passed as a string.</td>
+ </tr>
+ <tr>
+ <td><code>http://tizen.org/appcontrol/data/input_cursor_position_get</code></td>
+ <td>The current position of the cursor in the keyboard input type. This key must be passed as a string.</td>
+ </tr>
+ <tr>
<td><code>http://tizen.org/appcontrol/data/input_reply_type</code></td>
<td>The reply type. This key must be passed as a string. The available values are:
<ul>