diff --git a/haxework/frame/FrameSwitcher.hx b/haxework/frame/FrameSwitcher.hx index 5a79282..062fbf7 100755 --- a/haxework/frame/FrameSwitcher.hx +++ b/haxework/frame/FrameSwitcher.hx @@ -24,6 +24,7 @@ class FrameSwitcher extends GroupView implements IFrameSwitcher { } current = frames.get(id); addView(current); + if (content.stage != null) content.stage.focus = current.content; var onShowMethod:Dynamic = Reflect.field(current, "onShow"); if (onShowMethod != null) Reflect.callMethod(current, onShowMethod, []); return current;