[framwswitcher] focus fix
This commit is contained in:
@@ -24,6 +24,7 @@ class FrameSwitcher extends GroupView implements IFrameSwitcher<Sprite> {
|
|||||||
}
|
}
|
||||||
current = frames.get(id);
|
current = frames.get(id);
|
||||||
addView(current);
|
addView(current);
|
||||||
|
if (content.stage != null) content.stage.focus = current.content;
|
||||||
var onShowMethod:Dynamic = Reflect.field(current, "onShow");
|
var onShowMethod:Dynamic = Reflect.field(current, "onShow");
|
||||||
if (onShowMethod != null) Reflect.callMethod(current, onShowMethod, []);
|
if (onShowMethod != null) Reflect.callMethod(current, onShowMethod, []);
|
||||||
return current;
|
return current;
|
||||||
|
|||||||
Reference in New Issue
Block a user