Sun, 2014-05-11 kello 13:06 +0200, Matthias Fehring kirjoitti:
> Hello list,
> 
> when I write something in a TextArea and there is a text prediction, the 
> prediction ist still shown after clearing the TextArea (text = ""). How can I 
> clear the prediction in the text field, too?

Ideally this should be working without any extra steps. Testing a bit I
noticed a couple bugs: Qt doesn't reset input if new text content is the
same as previous without considering prediction. And setting text
doesn't now properly remove predicted text from input context, getting
then reinserted if user moves cursor just after text is set. Otherwise
seems to be working.

If you want to work around, you can do Qt.inputMethod.commit() before
setting the new text content.


_______________________________________________
SailfishOS.org Devel mailing list

Reply via email to