@@ -311,5 +311,26 @@ StyledItem {
311311
312312 compare(launcher.lastSelectedApplication, "calendar-app");
313313 }
314+
315+ function test_focusMovesCorrectlyBetweenLauncherAndDrawer() {
316+ var panel = findChild(launcher, "launcherPanel");
317+ var drawer = findChild(launcher, "drawer");
318+ var searchField = findChild(drawer, "searchField");
319+
320+ launcher.openForKeyboardNavigation();
321+ tryCompare(panel, "highlightIndex", -1);
322+ keyClick(Qt.Key_Down);
323+ tryCompare(panel, "highlightIndex", 0);
324+
325+ launcher.openDrawer(true);
326+ tryCompare(searchField, "focus", true);
327+
328+ keyClick(Qt.Key_Escape);
329+
330+ launcher.openForKeyboardNavigation();
331+ tryCompare(panel, "highlightIndex", -1);
332+ keyClick(Qt.Key_Down);
333+ tryCompare(panel, "highlightIndex", 0);
334+ }
314335 }
315336}