+void KeyboardFocusManager::OnWindowFocusChanged(Window window, bool focusIn)
+{
+ if(focusIn && mCurrentFocusedWindow.GetHandle() != window.GetRootLayer())
+ {
+ // Change Current Focused Window
+ Layer rootLayer = window.GetRootLayer();
+ mCurrentFocusedWindow = rootLayer;
+
+ // Get Current Focused Actor from window
+ Actor currentFocusedActor = GetFocusActorFromCurrentWindow();
+ SetCurrentFocusActor(currentFocusedActor);
+
+ if(currentFocusedActor && (mEnableFocusIndicator == ENABLE))
+ {
+ // Make sure the focused actor is highlighted
+ currentFocusedActor.Add(GetFocusIndicatorActor());
+ mIsFocusIndicatorShown = SHOW;
+ }
+ }
+}
+