mandag den 12. marts 2018 12.28.29 CET skrev Lukáš Karas:
Try to setup `currentIndex` of `SilicaListView` to -1 explicitly... From my experience, when model of list view is updated, first delegated item steal focus from search field and keyboard is hidden...

```
    SilicaListView {
        id: listView
        model:listModel.proxyModel
        anchors.fill: parent

        currentIndex: -1 // otherwise currentItem will steal focus

        // ...
   }
```

Lukas
Thanks that works :-)


Dne pondělí 12. března 2018 12:11:10 CET Jesper Schmitz Mouridsen napsal(a):
Hi list.

I'm making a searchable (play)list for vlc-remote's playlist
https://github.com/jsm222/harbour-vlc-remote/tree/cpp-playlist

At the moment I'm using a timer to regain focus on the SearchField in
the header, since it looses focus on every single char input. (After the ...




_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Reply via email to