[3.0] Fixed to show textSelectionPop up normally on second long press 40/116640/2
authorsuhyung Eom <suhyung.eom@samsung.com>
Mon, 27 Feb 2017 10:37:45 +0000 (19:37 +0900)
committersuhyung Eom <suhyung.eom@samsung.com>
Mon, 27 Feb 2017 10:45:54 +0000 (19:45 +0900)
Signed-off-by: suhyung Eom <suhyung.eom@samsung.com>
Change-Id: Ib13cb8bb21fc73ccc200e28354691137b3753d19

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();