Power button and Menu button are now consumed so don't erase selected text.
Change-Id: Idaa2f50f67d6c77e3062ec21a179a3c8d79d1fcc
Signed-off-by: Agnelo Vaz <agnelo.vaz@samsung.com>
{
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() );