We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Node
1 parent 15781ad commit 7690841Copy full SHA for 7690841
src/extensions/scenegraph/nodes/Node.ts
@@ -901,8 +901,6 @@ export class Node extends RoSGNode implements BrsValue {
901
return false;
902
}
903
904
- sgRoot.setFocused(this);
905
-
906
// Get the focus chain, with lowest ancestor first.
907
let newFocusChain = this.createPath();
908
@@ -925,6 +923,8 @@ export class Node extends RoSGNode implements BrsValue {
925
923
currFocusChain[i].setValue(focusedChild, BrsInvalid.Instance, false);
926
924
927
+ // Set the global focused node reference to this node.
+ sgRoot.setFocused(this);
928
929
// Set the focusedChild for each ancestor to the next node in the chain,
930
// which is the current node's child.
0 commit comments