wsc->surrounding_text = strdup (text);
wsc->surrounding_cursor = cursor;
+
+ if (wsc->cursor_pos != cursor) {
+ wsc->cursor_pos = cursor;
+ caps_mode_check (wsc->wsc_ctx, EINA_FALSE, EINA_TRUE);
+ }
+
+ LOGD ("text : '%s', cursor : %d", text, cursor);
}
static void
struct weescim *wsc = (weescim*)data;
if (!wsc) return;
+ LOGD ("invoke action. button : %d", button);
+
if (button != BTN_LEFT)
return;
wsc->preedit_str = strdup ("");
wsc->content_hint = WL_TEXT_INPUT_CONTENT_HINT_NONE;
wsc->content_purpose = WL_TEXT_INPUT_CONTENT_PURPOSE_NORMAL;
+ wsc->cursor_pos = -1;
if (wsc->language) {
free (wsc->language);