on xenial help sign in
less duplicated code
cd464ecMichael Zanetti
qml/Stage/Stage.qml+2−6
@@ -686,6 +686,7 @@ AbstractStage {
686
686
687 function claimFocus() {
687 function claimFocus() {
688 if (root.state == "spread") {
688 if (root.state == "spread") {
689+ spreadItem.highlightedIndex = index
689 priv.goneToSpread = false;
690 priv.goneToSpread = false;
690 }
691 }
691 if (appDelegate.stage == ApplicationInfoInterface.SideStage && !sideStage.shown) {
692 if (appDelegate.stage == ApplicationInfoInterface.SideStage && !sideStage.shown) {
@@ -701,12 +702,7 @@ AbstractStage {
701 Connections {
702 Connections {
702 target: model.surface
703 target: model.surface
703 onFocusRequested: {
704 onFocusRequested: {
704− if (root.state == "spread") {
705− spreadItem.highlightedIndex = index
706− priv.goneToSpread = false;
707− } else {
708− claimFocus();
705+ claimFocus();
709− }
710 }
706 }
711 }
707 }
712 Connections {
708 Connections {