[Konversation-devel] [Bug 136950] konversation does not honour the kde settings for keyboard shortcuts everywhere

Eike Hein hein at kde.org
Thu Nov 23 23:43:11 CET 2006


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=136950         
hein kde org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From hein kde org  2006-11-23 23:43 -------
SVN commit 607280 by hein:

Move some KTextEdit functionality in our KTextBrowser
derivative to support copy/paste shortcuts other than
the default Ctrl+C/V ones in the ircview.
BUG:136950


 M  +3 -0      ChangeLog  
 M  +2 -0      src/chatwindow.cpp  
 M  +2 -0      src/ircinput.cpp  
 M  +11 -1     src/ircview.cpp  


--- trunk/extragear/network/konversation/ChangeLog #607279:607280
 @ -44,6 +44,9  @
 - Fixed bug leading to crash upon initiating DCC Chat when "Focus new tabs"
   was enabled.
 - Support command aliases in network connect commands.
+- Fixed copy/paste from the ircview widget with shortcuts other than the
+  default Ctrl+C/V ones.
+
 -------------------------------------------------------------------------------
 
 Changes from 1.0 to 1.0.1
--- trunk/extragear/network/konversation/src/chatwindow.cpp #607279:607280
 @ -445,6 +445,8  @
 {
     if(e->type() == QEvent::KeyPress)
     {
+        kdDebug() << "muh" << endl;
+
         QKeyEvent* ke = static_cast<QKeyEvent*>(e);
 
         bool scrollMod = (Preferences::useMultiRowInputBox() ? false : (ke->state() == Qt::ShiftButton));
--- trunk/extragear/network/konversation/src/ircinput.cpp #607279:607280
 @ -221,6 +221,8  @
 // Take care of Tab, Cursor and so on
 void IRCInput::keyPressEvent(QKeyEvent* e)
 {
+        kdDebug() << "bloo" << endl;
+
     switch(e->key())
     {
         case Key_Tab:
--- trunk/extragear/network/konversation/src/ircview.cpp #607279:607280
 @ -51,6 +51,7  @
 #include <kmenubar.h>
 #include <kfiledialog.h>
 #include <kio/job.h>
+#include <kstdaccel.h>
 
 #include "channel.h"
 #include "dccchat.h"
 @ -1541,9 +1542,18  @
 
 void IRCView::keyPressEvent(QKeyEvent* e)
 {
-    if((e->key() == Qt::Key_V) && (e->state() == Qt::ControlButton))
+    KKey key(e);
+
+    if (KStdAccel::copy().contains(key))
     {
+        copy();
+        e->accept();
+        return;
+    }
+    else if (KStdAccel::paste().contains(key))
+    {
         emit textPasted(false);
+        e->accept();
         return;
     }


More information about the Konversation-devel mailing list