{
textChanged = BackspaceKeyEvent();
}
+ else if ( IsKey( keyEvent, Dali::DALI_KEY_POWER ) || IsKey( keyEvent, Dali::DALI_KEY_MENU ) )
+ {
+ // Do nothing when the Power or Menu Key is pressed.
+ // It avoids call the InsertText() method and delete the selected text.
+ }
else
{
DALI_LOG_INFO( gLogFilter, Debug::Verbose, "Controller::KeyEvent %p keyString %s\n", this, keyString.c_str() );
mImpl->mEventData->mDecorator->SetPopupActive( false );
}
- mImpl->ChangeState( EventData::EDITING );
-
// Handles & cursors must be repositioned after Relayout() i.e. after the Model has been updated
if( mImpl->mEventData )
{
+ mImpl->ChangeState( EventData::EDITING );
+
Event event( Event::TAP_EVENT );
event.p1.mUint = tapCount;
event.p2.mFloat = x;