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

List:       koffice-devel
Subject:    Re: KSpread Left-Right in Editor
From:       Norbert Andres <nandres () web ! de>
Date:       2002-08-28 22:16:25
[Download RAW message or body]

Ok, this is not going to work:
The attached patch fixes the endless loop/crash but causes another problem: 
you cannot choose cells with the keys <left>/<right> anymore.
So now if you double click in a cell you can add new cells to the formula 
(using the mouse or the keyboard). If you press F2 you can use the <left> and 
<right> keys for walking through the formula.

In Gnumeric and OpenCalc you can only choose cells on the first time you use a 
cell and after that you need to use the mouse for doing this. 

So maybe our current solution is the best one, but obviously you can't have 
everything everytime.

So if you think like me, throw away both patches for this problems and - go 
back to work :-)

Ferdinand, thanks for the mail you sent me. I still got 
"Speicherzugriffsfehler" (errors accessing memory) and F4 for some reason 
still works for me...

On Wednesday 28 August 2002 21:25, Norbert Andres wrote:
> Hi,
>
> I tried to make a patch for the case when you edit a cell (which contains
> some text already) and want to go left or right. Right now you leave the
> cell (and the edit mode) and switch to another cell.
>
> I don't know why but for me KSpread crashes if I use the 4 line patch
> attached.
> Is it just my installation or do you get the same error?
>
> Regards
> Norbert

["editor.diff" (text/x-diff)]

Index: kspread_editors.cc
===================================================================
RCS file: /home/kde/koffice/kspread/kspread_editors.cc,v
retrieving revision 1.54
diff -u -r1.54 kspread_editors.cc
--- kspread_editors.cc	2002/06/24 06:30:49	1.54
+++ kspread_editors.cc	2002/08/28 21:43:56
@@ -291,7 +291,7 @@
         QKeyEvent* k = (QKeyEvent*)e;
         if ( !( k->state() & Qt::ShiftButton )|| canvas()->chooseFormulaArea())
         {
-            if ( k->key() == Key_Right  || k->key() == Key_Left || k->key() == Key_Up ||
+            if ( k->key() == Key_Up ||
                  k->key() == Key_Down || k->key() == Key_Next ||
                  k->key() == Key_Prior || k->key() == Key_Escape ||
                  k->key() == Key_Tab )

_______________________________________________
koffice-devel mailing list
koffice-devel@mail.kde.org
http://mail.kde.org/mailman/listinfo/koffice-devel

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

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