on xenial help sign in
Make the indicators left/right work just after opening indicators too
commite9b688ac15966249fc9a4e4874b1e8dee46ad39a authorAlbert Astals Cid <albert.astals@canonical.com> dateWed 4 Jan 2017, 13:07 (10 years ago) parentaf3e0b8
2 files changed+12−2
qml/Panel/IndicatorsMenu.qml+1 tests/qmltests/Panel/tst_IndicatorsMenu.qml+11−2
qml/Panel/IndicatorsMenu.qml+1
@@ -369,6 +369,7 @@ Showable {
369369 State {
370370 name: "commit"
371371 extend: "locked"
372+ PropertyChanges { target: root; focus: true }
372373 PropertyChanges { target: bar; interactive: true }
373374 PropertyChanges {
374375 target: d;
tests/qmltests/Panel/tst_IndicatorsMenu.qml+11−2
@@ -304,14 +304,23 @@ IndicatorTest {
304304 indicatorsMenu.hide();
305305 }
306306
307− function test_keyboardNavigation() {
307+ function test_keyboardNavigation_data() {
308+ return [
309+ {tag: "tab to start", doTab: false},
310+ {tag: "no tab to start", doTab: true}
311+ ]
312+ }
313+
314+ function test_keyboardNavigation(data) {
308315 var indicatorsBar = findChild(indicatorsMenu, "indicatorsBar");
309316
310317 indicatorsMenu.show();
311318 indicatorsBar.setCurrentItemIndex(0);
312319 tryCompare(indicatorsMenu, "fullyOpened", true);
313320
314− keyClick(Qt.Key_Tab);
321+ if (data.doTab) {
322+ keyClick(Qt.Key_Tab);
323+ }
315324
316325 keyClick(Qt.Key_Right);
317326 tryCompare(indicatorsBar, "currentItemIndex", 1);