Hide the keyboard when station list is pressed
authorLuciano Montanaro <mikelima@cirulla.net>
Tue, 31 Dec 2013 17:07:53 +0000 (18:07 +0100)
committerLuciano Montanaro <mikelima@cirulla.net>
Tue, 31 Dec 2013 17:07:53 +0000 (18:07 +0100)
application/resources/sailfish/qml/pages/StationListPage.qml

index e1c5b8c..d45fb0e 100644 (file)
@@ -77,10 +77,6 @@ Page {
                         right: parent.right
                     }
                 }
-                onClicked: {
-                    searchField.focus = false
-                    Private.loadStation(model.name, model.code)
-                }
                 menu: contextMenu
                 Component {
                     id: contextMenu
@@ -98,6 +94,8 @@ Page {
                         }
                     }
                 }
+                onPressed: searchField.focus = false
+                onClicked: Private.loadStation(model.name, model.code)
             }
             VerticalScrollDecorator {}
         }