summaryrefslogtreecommitdiff
path: root/client/widgets
diff options
context:
space:
mode:
authordeva <deva>2010-03-02 14:08:07 +0000
committerdeva <deva>2010-03-02 14:08:07 +0000
commitc74e2b01a93f3c482fb2082df1abbf53e94da4b5 (patch)
treed19cf47181f8fd673ed045ced9240b832e43552b /client/widgets
parent3d08c77c615bf2da4c4f67648435aa79653da9b2 (diff)
Add enter to 'send' tab as return does.
Diffstat (limited to 'client/widgets')
-rw-r--r--client/widgets/lineedit.cc3
1 files changed, 2 insertions, 1 deletions
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<QKeyEvent *>(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);
}