[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenetwork/ksirc
From:       Frerich Raabe <raabe () kde ! org>
Date:       2004-02-03 16:50:29
Message-ID: 20040203165029.821D498E1 () office ! kde ! org
[Download RAW message or body]

CVS commit by raabe: 

- Swallow enter-key events as well so that pressing enter in the middle of
  a topic does not insert a "\n" there (which would appear as a space in
  the topic).


  M +6 -0      topic.cpp   1.18


--- kdenetwork/ksirc/topic.cpp  #1.17:1.18
@@ -197,4 +197,10 @@ void KSircTopicEditor::keyPressEvent( QK
         return;
     }
+    else if ( ev->key() == Key_Return )
+    {
+        ev->accept();
+        emit returnPressed();
+        return;
+    }
     QTextEdit::keyPressEvent( ev );
 }


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic