diff -r 93b982ccede2 -r 5daf16870df6 src/gui/widgets/qtextedit.cpp --- a/src/gui/widgets/qtextedit.cpp Mon Jun 21 22:38:13 2010 +0100 +++ b/src/gui/widgets/qtextedit.cpp Thu Jul 22 16:41:55 2010 +0100 @@ -1212,12 +1212,9 @@ default: if (QApplication::keypadNavigationEnabled()) { if (!hasEditFocus() && !(e->modifiers() & Qt::ControlModifier)) { - if (e->text()[0].isPrint()) { + if (e->text()[0].isPrint()) setEditFocus(true); -#ifndef Q_OS_SYMBIAN - clear(); -#endif - } else { + else { e->ignore(); return; } @@ -1677,12 +1674,8 @@ #ifdef QT_KEYPAD_NAVIGATION if (d->control->textInteractionFlags() & Qt::TextEditable && QApplication::keypadNavigationEnabled() - && !hasEditFocus()) { + && !hasEditFocus()) setEditFocus(true); -#ifndef Q_OS_SYMBIAN - selectAll(); // so text is replaced rather than appended to -#endif - } #endif d->sendControlEvent(e); ensureCursorVisible();