[SailfishDevel] Watch virtual keyboard state

Dylan Van Assche dylan.van.assche at protonmail.com
Sun Jan 28 17:59:06 UTC 2018


Hi,

For a messaging client I need to watch the virtual keyboard state, when it's opened or closed I need to adjust my SilicaListView to the right position.

I tried already this:

Connections {
        target: Qt.inputMethod
        onVisibleChanged: {
            console.debug("Keyboard visible: " + visible)
            messagesListView.scrollToBottom()
        }
    }

But due this Qt bug: https://bugreports.qt.io/browse/QTBUG-36909 this solution isn't working.
I saw that a DBus interface is exposed from com.jolla.keyboard but I haven't managed yet to talk to it about the keyboard state.

Anyone an idea for this?

Kind regards,
Dylan Van Assche
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.sailfishos.org/pipermail/devel/attachments/20180128/d2716ca2/attachment.html>


More information about the Devel mailing list