on xenial help sign in
check for text
a506dbdLukáš Tinkl
qml/Launcher/Drawer.qml+5−2
@@ -44,8 +44,11 @@ FocusScope {
44 }
44 }
45
45
46 Keys.onPressed: {
46 Keys.onPressed: {
47+ if (event.text.trim() !== "") {
47− focusInput();
48+ focusInput();
48− searchField.insert(0, event.text);
49+ searchField.insert(0, event.text);
50+ event.accepted = true;
51+ }
49 }
52 }
50
53
51 Settings {
54 Settings {