@@ -1460,6 +1460,25 @@ Rectangle {
1460 confirmLoggedIn(true);
1460 confirmLoggedIn(true);
1463+ function test_terminalShortcut() {
1464+ loadShell("desktop");
1465+ shell.usageScenario = "desktop";
1466+ waitForRendering(shell);
1467+ swipeAwayGreeter();
1469+ // not running, should start
1470+ keyClick(Qt.Key_T, Qt.ControlModifier|Qt.AltModifier);
1471+ tryCompare(ApplicationManager, "focusedApplicationId", "ubuntu-terminal-app");
1473+ // start something else
1474+ ApplicationManager.startApplication("dialer-app");
1475+ tryCompare(ApplicationManager, "focusedApplicationId", "dialer-app");
1477+ // terminal running in background, should get focused
1478+ keyClick(Qt.Key_T, Qt.ControlModifier|Qt.AltModifier);
1479+ tryCompare(ApplicationManager, "focusedApplicationId", "ubuntu-terminal-app");
1463 function test_launcherInverted_data() {
1482 function test_launcherInverted_data() {
1464 return [
1483 return [
1465 {tag: "phone", formFactor: "phone", usageScenario: "phone", launcherInverted: true},
1484 {tag: "phone", formFactor: "phone", usageScenario: "phone", launcherInverted: true},