X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Ftext%2Ftext-controller.cpp;h=e990d42f722319d20eb2a5b06cbb17f53e6bc2ea;hp=bcac0251e54dac6953c5a59898f6d49d37e90b44;hb=f39a0555fc2897d94a4984712e219e452bc96d70;hpb=db3fc9592ec6897e668a62afa7ffdff3ad82c023 diff --git a/dali-toolkit/internal/text/text-controller.cpp b/dali-toolkit/internal/text/text-controller.cpp index bcac025..e990d42 100644 --- a/dali-toolkit/internal/text/text-controller.cpp +++ b/dali-toolkit/internal/text/text-controller.cpp @@ -1716,8 +1716,14 @@ void Controller::PasteText( const std::string& stringToPaste ) 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 ); }