From c74e2b01a93f3c482fb2082df1abbf53e94da4b5 Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 2 Mar 2010 14:08:07 +0000 Subject: Add enter to 'send' tab as return does. --- client/widgets/lineedit.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/widgets/lineedit.cc b/client/widgets/lineedit.cc index e7ec9ce..c3a799a 100644 --- a/client/widgets/lineedit.cc +++ b/client/widgets/lineedit.cc @@ -141,7 +141,8 @@ bool LineEdit::eventFilter(QObject *, QEvent *event) { if (event->type() == QEvent::KeyPress) { QKeyEvent *keyEvent = static_cast(event); - if(keyEvent->key() == Qt::Key_Return) { + if(keyEvent->key() == Qt::Key_Return || + keyEvent->key() == Qt::Key_Enter) { QKeyEvent tabevent(QEvent::KeyPress, Qt::Key_Tab, Qt::NoModifier); QCoreApplication::sendEvent(this, &tabevent); } -- cgit v1.2.3