Fix for text controller (IMF callback). 24/76824/3
authorVictor Cebollada <v.cebollada@samsung.com>
Mon, 27 Jun 2016 10:03:53 +0000 (11:03 +0100)
committerVictor Cebollada <v.cebollada@samsung.com>
Fri, 1 Jul 2016 07:39:04 +0000 (08:39 +0100)
* 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 <v.cebollada@samsung.com>
dali-toolkit/internal/text/text-controller.cpp

index 8175be4..47de1a2 100644 (file)
@@ -2647,7 +2647,6 @@ ImfManager::ImfCallbackData Controller::OnImfEvent( ImfManager& imfManager, cons
         mImpl->mEventData->mScrollAfterDelete = true;
 
         requestRelayout = true;
         mImpl->mEventData->mScrollAfterDelete = true;
 
         requestRelayout = true;
-        retrieveCursor = true;
       }
       break;
     }
       }
       break;
     }