[SailfishDevel] Determine keyboard locale
Pekka Vuorela
pekka.vuorela at jolla.com
Wed Nov 25 10:19:27 UTC 2015
On ke, 2015-11-25 at 11:00 +0100, Matthias Fehring wrote:
> Hello list,
>
> is there a way to query the locale of the currently used keyboard in
> QML?
>
> Qt.inputMethod.locale.name returns only "C", whatever keyboard is
> used.
Unfortunately no proper way at the moment. Should implement support for
that interface at some point, though.
Bad hacky way is checking sailfish/text_input/active_layout dconf value
and inferring locale from qml file name. No guarantees on keeping it
that way and doesn't work with hardware keyboards.
More information about the Devel
mailing list