* The text field is not in edit mode.
- Double tap to select a word. The text-field grabs the focus but it
shouldn't change to edit mode, it should select the word.
- Tap to edit, tap in a different place to make the grab handle to appear.
When the text-field grabs the focus it goes bak to edit mode and the
grab handle dissapears.
Change-Id: I9dd055df25a8d358b0950faa76ab155affcce7cb
Signed-off-by: v.cebollada <v.cebollada@samsung.com>
if( mImpl->mEventData )
{
if( mImpl->mEventData )
{
- mImpl->ChangeState( EventData::EDITING );
+ if( ( EventData::INACTIVE == mImpl->mEventData->mState ) ||
+ ( EventData::INTERRUPTED == mImpl->mEventData->mState ) )
+ {
+ mImpl->ChangeState( EventData::EDITING );
+ mImpl->mEventData->mUpdateCursorPosition = true; //If editing started without tap event, cursor update must be triggered.
+ }
if( mImpl->IsShowingPlaceholderText() )
{
if( mImpl->IsShowingPlaceholderText() )
{
- mImpl->mEventData->mUpdateCursorPosition = true; //If editing started without tap event, cursor update must be triggered.
mImpl->RequestRelayout();
}
}
mImpl->RequestRelayout();
}
}
- if ( mImpl->mEventData->mState != EventData::INTERRUPTED && mImpl->mEventData->mState != EventData::INACTIVE )
+ if ( ( mImpl->mEventData->mState != EventData::INTERRUPTED ) &&
+ ( mImpl->mEventData->mState != EventData::INACTIVE ) )
{
mImpl->ChangeState( EventData::EDITING );
}
{
mImpl->ChangeState( EventData::EDITING );
}