Merge "Append clipboard text after current pre-edit text" into devel/master
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Mon, 19 Oct 2015 14:52:49 +0000 (07:52 -0700)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Mon, 19 Oct 2015 14:52:49 +0000 (07:52 -0700)
dali-toolkit/internal/text/text-controller.cpp

index bcac025..e990d42 100644 (file)
@@ -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 );
 }