+void KeyboardFocusManager::OnPhysicalKeyboardStatusChanged(PhysicalKeyboard keyboard)
+{
+ mIsKeyboardFocusEnabled = keyboard.IsAttached();
+
+ if(mIsKeyboardFocusEnabled)
+ {
+ // Show indicator when keyboard focus turned on if there is focused actor.
+ Actor actor = GetCurrentFocusActor();
+ if(actor)
+ {
+ actor.Add( GetFocusIndicatorActor() );
+ }
+ mIsFocusIndicatorEnabled = true;
+ }
+ else
+ {
+ // Hide indicator when keyboard focus turned off
+ Actor actor = GetCurrentFocusActor();
+ if( actor && mFocusIndicatorActor )
+ {
+ actor.Remove( mFocusIndicatorActor );
+ }
+ mIsFocusIndicatorEnabled = false;
+ }
+}
+