fix focusing something while in spread
commitde02c6c4cf9c74ce14b858433f32e7a3b9fea09d
authorMichael Zanetti <michael.zanetti@canonical.com>
dateMon 19 Sep 2016, 17:33 (10 years ago)
parentae181fb
qml/Stage/Stage.qml+6−3
@@ -701,9 +701,12 @@ AbstractStage {
701701 Connections {
702702 target: model.surface
703703 onFocusRequested: {
704− // Reset spread selection in case there is any
705− spreadItem.highlightedIndex = -1
706− claimFocus();
704+ if (root.state == "spread") {
705+ spreadItem.highlightedIndex = index
706+ priv.goneToSpread = false;
707+ } else {
708+ claimFocus();
709+ }
707710 }
708711 }
709712 Connections {