diff options
author | Sami Merila <sami.merila@nokia.com> | 2011-08-17 08:46:16 (GMT) |
---|---|---|
committer | Timo Turunen <timo.p.turunen@nokia.com> | 2011-08-30 07:02:14 (GMT) |
commit | b6dbe0a064139a0c45e374f87518d71195965fb0 (patch) | |
tree | 11d57f691defa6c80b13db1ca795a9b74cb3aec0 /src/gui/inputmethod | |
parent | b7f1dc2da720ba371b7f46f168ea271f0372c7f6 (diff) | |
download | Qt-b6dbe0a064139a0c45e374f87518d71195965fb0.zip Qt-b6dbe0a064139a0c45e374f87518d71195965fb0.tar.gz Qt-b6dbe0a064139a0c45e374f87518d71195965fb0.tar.bz2 |
Handle CloseSoftwareInputPanel event in QCoeFepInputContext
Handle CloseSoftwareInputPanel event in QCoeFepInputContext (i.e.
notify the native side that SIP needs to be closed).
Note that event is not consumed.
Task-number: QTBUG-20033
Reviewed-by: Miikka Heikkinen
(cherry picked from commit 5aef1b278488fb889e298ce858ae299b83edf5ed)
Reapplied after bad v4.7.4 merge
Diffstat (limited to 'src/gui/inputmethod')
-rw-r--r-- | src/gui/inputmethod/qcoefepinputcontext_s60.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/gui/inputmethod/qcoefepinputcontext_s60.cpp b/src/gui/inputmethod/qcoefepinputcontext_s60.cpp index d0dda83..2202d3a 100644 --- a/src/gui/inputmethod/qcoefepinputcontext_s60.cpp +++ b/src/gui/inputmethod/qcoefepinputcontext_s60.cpp @@ -252,9 +252,6 @@ bool QCoeFepInputContext::needsInputPanel() bool QCoeFepInputContext::filterEvent(const QEvent *event) { - // The CloseSoftwareInputPanel event is not handled here, because the VK will automatically - // close when it discovers that the underlying widget does not have input capabilities. - if (!focusWidget()) return false; @@ -318,6 +315,11 @@ bool QCoeFepInputContext::filterEvent(const QEvent *event) if (!needsInputPanel()) return false; + if (event->type() == QEvent::CloseSoftwareInputPanel) { + m_fepState->ReportAknEdStateEventL(MAknEdStateObserver::EAknClosePenInputRequest); + return false; + } + if (event->type() == QEvent::RequestSoftwareInputPanel) { // Only request virtual keyboard if it is not yet active or if this is the first time // panel is requested for this application. |