# endif
#endif
- if(_mode == SingleLine)
+ if(_mode == SingleLine) {
+ event->accept();
+ on_returnPressed();
return;
+ }
#ifdef HAVE_KDE
KTextEdit::keyPressEvent(event);
#else
}
reset();
tempHistory.clear();
+ } else {
+ emit noTextEntered();
}
}
on_documentHeightChanged(_lastDocumentHeight);
}
updateSizeHint();
+ ensureCursorVisible();
}
void MultiLineEdit::on_documentHeightChanged(qreal) {