From: Victor Cebollada Date: Mon, 27 Jun 2016 10:03:53 +0000 (+0100) Subject: Fix for text controller (IMF callback). X-Git-Tag: dali_1.1.42~8^2 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=commitdiff_plain;h=refs%2Fchanges%2F24%2F76824%2F3;ds=sidebyside 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 --- 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; }