Skip to content

Commit 7fc3d58

Browse files
Marko Kenttalahelanti
Marko Kenttala
authored andcommitted
Fix for enter key inserting into password fields in Symbian
QML TextInput and TextField elements with echoMode TextInput.Password adds enter key into container string. Modified filtering in Symbian QCoeFepInputContext to disable adding enter key for hidden editors. Task-Number: 1009418 Change-Id: If7928ccdb131d11f8c975b0efe890b85f3ba202e Reviewed-by: Jaakko Helanti <[email protected]> Reviewed-by: Sergio Ahumada <[email protected]> (cherry picked from commit a9aa74e) Reviewed-by: Aapo Haapanen <[email protected]>
1 parent 028d414 commit 7fc3d58

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/gui/inputmethod/qcoefepinputcontext_s60.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,8 @@ bool QCoeFepInputContext::filterEvent(const QEvent *event)
743743

744744
if (keyEvent->type() == QEvent::KeyPress
745745
&& currentHints & Qt::ImhHiddenText
746-
&& !keyEvent->text().isEmpty()) {
746+
&& !keyEvent->text().isEmpty()
747+
&& keyEvent->key() != Qt::Key_Enter) {
747748
// Send some temporary preedit text in order to make text visible for a moment.
748749
m_preeditString = keyEvent->text();
749750
QList<QInputMethodEvent::Attribute> attributes;

0 commit comments

Comments
 (0)