[SailfishDevel] Virtual keyboard disappears while typing in a silica search field

Vlad Vasilyev vasvlad at gmail.com
Thu Dec 26 19:46:10 UTC 2013


Hi.

Try to add currentIndex: -1 to SilicaListView. This solution helped with my
problem.

https://github.com/Meecast/meecast/commit/0bb7417509c5a3aeee9d7ee842c3f5b0ff97af3c

Vlad.


On Thu, Dec 26, 2013 at 2:26 PM, Luciano Montanaro <mikelima at gmail.com>wrote:

> Hello everybody,
>
> I have this strange problem in my Quando Parte application.
>
> I have created a SilicaListView, with a search field as its header.
> The listview has a long list of stations (around 2000), and the search
> field is used to narrow it down. Every time the text is updated, I
> change the filter for the list view. The problem is that after I type
> the first character (or sometimes the second), the virtual keyboard
> disappears. Maybe the search field is losing focus... how could I
> prevent this from happening?
>
> For your reference, the page in question is up on github:
>
>
> https://github.com/mikelima/quandoparte/blob/master/application/resources/sailfish/qml/pages/StationListPage.qml
>
> Thank you in advance,
> Luciano
>
> --
> Luciano Montanaro
>
> Anyone who is capable of getting themselves made President should on
> no account be allowed to do the job. -- Douglas Adams
> _______________________________________________
> SailfishOS.org Devel mailing list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20131226/514a1ad2/attachment.html>


More information about the Devel mailing list