on xenial help sign in
direct search
9524e20Lukáš Tinkl
qml/Launcher/Drawer.qml+5
@@ -43,6 +43,11 @@ FocusScope {
43 searchField.focus = true;
43 searchField.focus = true;
44 }
44 }
45
45
46+ Keys.onPressed: {
47+ focusInput();
48+ searchField.insert(0, event.text);
49+ }
50+
46 Settings {
51 Settings {
47 property alias selectedTab: sections.selectedIndex
52 property alias selectedTab: sections.selectedIndex
48 }
53 }
qml/Launcher/Launcher.qml+2−1
@@ -71,7 +71,7 @@ FocusScope {
71 } else {
71 } else {
72 superPressTimer.stop();
72 superPressTimer.stop();
73 superLongPressTimer.stop();
73 superLongPressTimer.stop();
74− launcher.switchToNextState("");
74+ switchToNextState("");
75 panel.shortcutHintsShown = false;
75 panel.shortcutHintsShown = false;
76 }
76 }
77 }
77 }
@@ -352,6 +352,7 @@ FocusScope {
352 width: Math.min(root.width, units.gu(90)) * .9
352 width: Math.min(root.width, units.gu(90)) * .9
353 panelWidth: panel.width
353 panelWidth: panel.width
354 visible: x > -width
354 visible: x > -width
355+ focus: visible
355
356
356 Behavior on anchors.rightMargin {
357 Behavior on anchors.rightMargin {
357 enabled: !dragArea.dragging && !launcherDragArea.drag.active && panel.animate && !drawer.draggingHorizontally
358 enabled: !dragArea.dragging && !launcherDragArea.drag.active && panel.animate && !drawer.draggingHorizontally