From ae44254100eb934f5f766c9ac834261b379afed3 Mon Sep 17 00:00:00 2001 From: Victor Cebollada Date: Mon, 27 Jun 2016 11:03:53 +0100 Subject: [PATCH] Fix for text controller (IMF callback). * Do not retrieve the cursor position when the DELETE SURROUNDING callback is called. When adding characters to an empty text-field, the IMF manager removes first the pre-edited text and adds the pre-edited text plus the new character. This patch fixes a flickering issue seen in the virtual keyboard. If the cursor position is retrieved when the pre-edited text is deleted, the virtual keyboard is shown with upper case characters and shown again in lower case when the text is added. Change-Id: Ifd3a01f2e2c211c15a41858ec0152c12f7a1188c Signed-off-by: Victor Cebollada --- dali-toolkit/internal/text/text-controller.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/dali-toolkit/internal/text/text-controller.cpp b/dali-toolkit/internal/text/text-controller.cpp index 8175be4..47de1a2 100644 --- a/dali-toolkit/internal/text/text-controller.cpp +++ b/dali-toolkit/internal/text/text-controller.cpp @@ -2647,7 +2647,6 @@ ImfManager::ImfCallbackData Controller::OnImfEvent( ImfManager& imfManager, cons mImpl->mEventData->mScrollAfterDelete = true; requestRelayout = true; - retrieveCursor = true; } break; } -- 2.7.4