Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
4.7.3
-
Symbian Wk_17
-
5aef1b278488fb889e298ce858ae299b83edf5ed, 95df5be87b37da139dba33b06aaf6e2a251be698
Description
Hi,
I have gone through the documentation http://doc.qt.nokia.com/4.7/qml-textinput.html#closeSoftwareInputPanel-method link and tried the sample snippet given there for using "openSoftwareInputPanel()" and "closeSoftwareInputPanel()". But i found that "closeSoftwareInputPanel()" method is not working (means not closing the VKB) when i triggered "onPressAndHold" signal handler. I am pasting the sample code here:
import QtQuick 1.0 TextInput { id: textInput text: "Hello world!" activeFocusOnPress: false MouseArea { anchors.fill: parent onClicked: { if (!textInput.activeFocus) { textInput.forceActiveFocus(); textInput.openSoftwareInputPanel(); } else { textInput.focus = false; } } onPressAndHold: textInput.closeSoftwareInputPanel(); } }
I observed that VKB closes only when i add "textInput.focus = false" in the "onPressAndHold" handler. my modifications are as follows:
onPressAndHold:
{ textInput.closeSoftwareInputPanel(); textInput.focus = false }So, it is clear that "closeSoftwareInputPanel()" is not working. So, it should work as documented, like it should close the VKB. If not, the documentation should be corrected.
Thanks & Regards,
BalaSubrahmanyam Varanasi