Deleted characters should be emitted to ATSPI before erase, otherwise the
characters following the deleted characters will be emitted.
Change-Id: I915c239e47cb809ff6204e690d4bc9da952f17bf
Vector<Character>::Iterator first = currentText.Begin() + cursorIndex;
Vector<Character>::Iterator last = first + numberOfCharacters;
- currentText.Erase( first, last );
-
if( NULL != mImpl->mEditableControlInterface )
{
std::string utf8;
mImpl->mEditableControlInterface->TextDeleted( cursorIndex, numberOfCharacters, utf8 );
}
+ currentText.Erase( first, last );
+
// Cursor position retreat
oldCursorIndex = cursorIndex;