Merge "[3.0] Fixed to show textSelectionPop up normally on second long press" into... accepted/tizen/3.0/common/20170228.061425 accepted/tizen/3.0/ivi/20170228.052528 accepted/tizen/3.0/mobile/20170228.052307 accepted/tizen/3.0/tv/20170228.052417 accepted/tizen/3.0/wearable/20170228.052504 submit/tizen_3.0/20170227.105302
authorsuhyung Eom <suhyung.eom@samsung.com>
Mon, 27 Feb 2017 10:49:31 +0000 (02:49 -0800)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Mon, 27 Feb 2017 10:49:32 +0000 (02:49 -0800)
dali-toolkit/internal/text/text-controller.cpp

index d87a490..d00e079 100644 (file)
@@ -1773,15 +1773,7 @@ void Controller::TapEvent( unsigned int tapCount, float x, float y )
     EventData::State state( mImpl->mEventData->mState );
     bool relayoutNeeded( false );   // to avoid unnecessary relayouts when tapping an empty text-field
 
-    if( mImpl->IsClipboardVisible() )
-    {
-      if( EventData::INACTIVE == state || EventData::EDITING == state)
-      {
-        mImpl->ChangeState( EventData::EDITING_WITH_GRAB_HANDLE );
-      }
-      relayoutNeeded = true;
-    }
-    else if( 1u == tapCount )
+    if( 1u == tapCount )
     {
       if( EventData::EDITING_WITH_POPUP == state || EventData::EDITING_WITH_PASTE_POPUP == state )
       {
@@ -1882,7 +1874,7 @@ void Controller::LongPressEvent( Gesture::State state, float x, float y  )
 
         mImpl->RequestRelayout();
       }
-      else if( !mImpl->IsClipboardVisible() )
+      else
       {
         // Reset the imf manger to commit the pre-edit before selecting the text.
         mImpl->ResetImfManager();