[SCM] ktp-text-ui packaging branch, master, updated. debian/15.12.1-1-1918-gdf4b0ec

Maximiliano Curia maxy at moszumanska.debian.org
Sat May 28 00:22:52 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=880d89e

The following commit has been merged in the master branch:
commit 880d89e43550d2631c377bc23f0bacb6cfa98f5a
Author: David Edmundson <kde at davidedmundson.co.uk>
Date:   Tue Oct 23 11:27:30 2012 -0700

    Allow sending messages with the enter key as well as return.
    
    BUG: 308895
---
 lib/chat-text-edit.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/chat-text-edit.cpp b/lib/chat-text-edit.cpp
index e4ca62c..eb4915b 100644
--- a/lib/chat-text-edit.cpp
+++ b/lib/chat-text-edit.cpp
@@ -73,7 +73,7 @@ QSize ChatTextEdit::sizeHint() const
 
 void ChatTextEdit::keyPressEvent(QKeyEvent *e)
 {
-    if (e->key()==Qt::Key_Return && !e->modifiers()) {
+    if ((e->key()==Qt::Key_Return ||  e->key()==Qt::Key_Enter) && !e->modifiers()) {
         Q_EMIT returnKeyPressed();
         return;
     }

-- 
ktp-text-ui packaging



More information about the pkg-kde-commits mailing list