Send text on shift+return in SingleLine mode
authorSebastian Goth <seezer@roath.org>
Sat, 26 Sep 2009 21:01:31 +0000 (23:01 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Mon, 28 Sep 2009 13:53:13 +0000 (15:53 +0200)
Accept shift+return as normal return KeyEvent if a multilineedit
is in SingleLine mode.

src/uisupport/multilineedit.cpp

index f4a0b95..9029f02 100644 (file)
@@ -231,8 +231,11 @@ void MultiLineEdit::keyPressEvent(QKeyEvent *event) {
 # endif
 #endif
 
-    if(_mode == SingleLine)
+    if(_mode == SingleLine) {
+      event->accept();
+      on_returnPressed();
       return;
+    }
 #ifdef HAVE_KDE
     KTextEdit::keyPressEvent(event);
 #else