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

List:       kde-commits
Subject:    kdevelop/src
From:       Alexander Dymo <cloudtemple () mksat ! net>
Date:       2004-04-22 20:37:33
Message-ID: 20040422203733.3E9BF99E6 () office ! kde ! org
[Download RAW message or body]

CVS commit by dymo: 

Make editor context menu appear not only using <Ctrl+Enter> shortcut but also using a \
default KDE shortcut for popup menu.


  M +5 -2      editorproxy.cpp   1.24


--- kdevelop/src/editorproxy.cpp  #1.23:1.24
@@ -16,5 +16,5 @@
 #include <kactioncollection.h>
 #include <klocale.h>
-
+#include <kstdaccel.h>
 
 #include <toplevel.h>
@@ -35,6 +35,9 @@ EditorProxy::EditorProxy()
   : QObject()
 {
-        new KAction( i18n("Show Context Menu"), CTRL+Key_Return, this, 
+        KAction *ac = new KAction( i18n("Show Context Menu"), 0, this, 
                 SLOT(showPopup()), \
TopLevel::getInstance()->main()->actionCollection(), "show_popup" ); +        \
KShortcut cut = KStdAccel::shortcut(KStdAccel::PopupMenuContext); +        \
cut.append(KKey(CTRL+Key_Return)); +        ac->setShortcut(cut);
 }
 


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

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