Inside SetCurrentFocusActor() is doing the same thing as ClearFocus.
Change-Id: I8116d653e430a1ff2cb46bbc818c448b07bc1644
{
return;
}
+ // If mClearFocusOnTouch is false, do not clear the focus indicator even if user touch the screen.
+ if(mClearFocusOnTouch)
+ {
+ ClearFocusIndicator();
+ }
+
// If KEYBOARD_FOCUSABLE and TOUCH_FOCUSABLE is true, set focus actor
if(hitActor && hitActor.GetProperty<bool>(Actor::Property::KEYBOARD_FOCUSABLE) && hitActor.GetProperty<bool>(DevelActor::Property::TOUCH_FOCUSABLE))
{
- // If mClearFocusOnTouch is false, do not clear the focus
- if(mClearFocusOnTouch)
- {
- ClearFocus();
- }
SetCurrentFocusActor(hitActor);
}
- else
- {
- // If mClearFocusOnTouch is false, do not clear the focus indicator even if user touch the screen.
- if(mClearFocusOnTouch)
- {
- ClearFocusIndicator();
- }
- }
}
}