Add ECORE_IMF_CALLBACK_DELETE_SURROUNDING

Change-Id: I0e1ab14736a3d3849becb7cbeea81fe7b61053b7
This commit is contained in:
Li Zhang 2016-03-24 17:51:50 +08:00 committed by Jihoon Kim
parent 5ad9a8542b
commit 7ad6c34a2c
1 changed files with 6 additions and 3 deletions

View File

@ -458,13 +458,16 @@ text_input_delete_surrounding_text(void *data,
uint32_t length)
{
WaylandIMContext *imcontext = (WaylandIMContext *)data;
Ecore_IMF_Event_Delete_Surrounding ev;
EINA_LOG_DOM_INFO(_ecore_imf_wayland_log_dom,
"delete surrounding text (index: %d, length: %u)",
index, length);
imcontext->pending_commit.delete_index = index;
imcontext->pending_commit.delete_length = length;
imcontext->pending_commit.delete_index = ev.offset = index;
imcontext->pending_commit.delete_length = ev.n_chars = length;
ecore_imf_context_delete_surrounding_event_add(imcontext->ctx, ev.offset, ev.n_chars);
ecore_imf_context_event_callback_call(imcontext->ctx, ECORE_IMF_CALLBACK_DELETE_SURROUNDING, &ev);
}
static void