I found that rkward svn trunk HEAD version has a bug under kde4.2beta2.
In rkward's R Console ,the up/down/left/right arrow key doesn't work
properly. It's because in kde 4.2 ,  katepart's  internal actions
implementation has changed.
In attachment it's a patch I tried to make. It works on my pc.
--- rkconsole.cpp	2008-07-17 09:26:20.000000000 +0800
+++ rkconsole.cpp	2008-12-30 21:57:20.000000000 +0800
@@ -83,15 +83,18 @@
 	/* We need to disable kactions that were plugged to the KateViewInternal in kateview.cpp.
 	These actions include Key_Up, Key_Down, etc. */
 	kate_edit_actions = view->findChild<KActionCollection*> ("edit_actions");
+	if (!kate_edit_actions) {
+		kate_edit_actions=view->actionCollection();
+	}
 	if (kate_edit_actions) {
 		// make sure these actions never get triggered by a shortcut
+
 		QList<QKeySequence> noshort;
 		noshort.append (QKeySequence ());	// no primary
 		noshort.append (QKeySequence ());	// no secondary
 		noshort.append (QKeySequence ());	// for good measure
 
 		QList<QAction*> keas = kate_edit_actions->actions ();
-		keas += view->actionCollection ()->actions ();
 		for (int i = 0; i < keas.size (); ++i) {
 			keas[i]->setShortcuts (noshort);
 		}
------------------------------------------------------------------------------
_______________________________________________
RKWard-devel mailing list
RKWard-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rkward-devel

Reply via email to