Change the EnterKey icon source to the "close" icon
authorLuciano Montanaro <mikelima@cirulla.net>
Fri, 3 Jan 2014 18:53:07 +0000 (19:53 +0100)
committerLuciano Montanaro <mikelima@cirulla.net>
Fri, 3 Jan 2014 18:53:07 +0000 (19:53 +0100)
This is a hint for the user that taping the enter key will hide the
keyboard.

application/resources/sailfish/qml/pages/StationListPage.qml

index d45fb0e..eef2e38 100644 (file)
@@ -43,6 +43,7 @@ Page {
                 onTextChanged: stationListPage.searchPattern = searchField.text
                 width: stationListPage.width
                 EnterKey.onClicked: searchField.focus = false
+                EnterKey.iconSource: "image://theme/icon-m-enter-close"
             }
         }
         SilicaListView {