diff options
author | Jouni Hiltunen <jouni.hiltunen@digia.com> | 2009-11-03 11:50:49 (GMT) |
---|---|---|
committer | axis <qt-info@nokia.com> | 2009-11-10 15:18:12 (GMT) |
commit | 05eacd9ad40f8adb5aaa12a8b90113a73b43f642 (patch) | |
tree | 4e6a14606e80e7caa9a3e337fd81bc8e24ac2b77 /src/gui/inputmethod/qcoefepinputcontext_p.h | |
parent | 4a3d5b857f2525cc033bcefafe014302116c3535 (diff) | |
download | Qt-05eacd9ad40f8adb5aaa12a8b90113a73b43f642.zip Qt-05eacd9ad40f8adb5aaa12a8b90113a73b43f642.tar.gz Qt-05eacd9ad40f8adb5aaa12a8b90113a73b43f642.tar.bz2 |
Long-press shortcuts for symbols on QWERTY keyboard don't work
Qt key event was not handled properly in the case of long key press.
With long key press, QCoeFepInputContext::commitCurrentString gets
called 3 times("q", "", "1"). (Normal key press is causing one call).
This is how aknfep works, so commitCurrentString was modified
to replace first character if long key press event detected.
E.g. "q" is replaced with "1".
qlinecontrol modified to keep cursor position correct.
Signed-off-by: axis <qt-info@nokia.com>
Diffstat (limited to 'src/gui/inputmethod/qcoefepinputcontext_p.h')
-rw-r--r-- | src/gui/inputmethod/qcoefepinputcontext_p.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/inputmethod/qcoefepinputcontext_p.h b/src/gui/inputmethod/qcoefepinputcontext_p.h index 452aa75..28c1c67 100644 --- a/src/gui/inputmethod/qcoefepinputcontext_p.h +++ b/src/gui/inputmethod/qcoefepinputcontext_p.h @@ -146,6 +146,8 @@ private: int m_inlinePosition; MFepInlineTextFormatRetriever *m_formatRetriever; MFepPointerEventHandlerDuringInlineEdit *m_pointerHandler; + int m_longPress; + int m_cursorPos; }; QT_END_NAMESPACE |