the middle mouse button should do the same as the left button on links
the middle mouse button should do the same as the
left button on links

--- knarticlewidget.cpp 2000/09/01 23:21:35     1.33
+++ knarticlewidget.cpp 2000/09/18 00:58:50
@@ -303,8 +303,8 @@ void KNArticleWidget::keyPressEvent(QKey
 void KNArticleWidget::viewportMousePressEvent(QMouseEvent *e)
 {
   QString a=QTextBrowser::anchorAt(e->pos());
-  if(!a.isEmpty() && e->button()==RightButton)
-    anchorClicked(a, RightButton, &(e->globalPos()));
+  if(!a.isEmpty() && (e->button()==RightButton || e->button()==MidButton))
+    anchorClicked(a, e->button(), &(e->globalPos()));

   QTextBrowser::viewportMousePressEvent(e);

@@ -833,7 +833,7 @@ void KNArticleWidget::anchorClicked(cons
     type=ATurl;
   }

-  if(button==LeftButton) {
+  if((button==LeftButton)||(button==MidButton)) {
     switch(type) {
       case ATauthor:
         kdDebug(5003) << "KNArticleWidget::anchorClicked() : mailto author" << endl;

svn path=/trunk/kdenetwork/knode/; revision=64221

lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi,lefou/kdepim-noakonadi