Issue description:
1) Configure keyboard to show clipboard item
2) Type some text without pressing space
3) Use the keyboard clipboard short-cut to paste test whilst pre-text is shown
4) Then when the next character is typed, the pre-edit text reappears
Solution is to stop prediction before pasting (appending instead of replacing)
Change-Id: Ibd661e2f4d377c8333711e97c3c7a751caf8c15f
void Controller::PasteClipboardItemEvent()
{
+ // Retrieve the clipboard contents first
ClipboardEventNotifier notifier( ClipboardEventNotifier::Get() );
std::string stringToPaste( notifier.GetContent() );
+
+ // Commit the current pre-edit text; the contents of the clipboard should be appended
+ mImpl->ResetImfManager();
+
+ // Paste
PasteText( stringToPaste );
}