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

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

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
["edit.diff" (text/x-diff)]

Index: kspread_canvas.cc
===================================================================
RCS file: /home/kde/koffice/kspread/kspread_canvas.cc,v
retrieving revision 1.312
diff -u -r1.312 kspread_canvas.cc
--- kspread_canvas.cc	2002/08/27 21:14:56	1.312
+++ kspread_canvas.cc	2002/08/28 18:48:00
@@ -1776,10 +1776,15 @@
   case Key_Enter:
     processEnterKey( _ev );
     break;;
-  case Key_Down:
-  case Key_Up:
   case Key_Left:
   case Key_Right:
+   if ( m_pEditor && !m_bChoose )
+   {
+     m_pEditor->handleKeyPressEvent( _ev );
+     break;
+   }
+  case Key_Down:
+  case Key_Up:
   case Key_Tab: /* a tab behaves just like a right arrow */
     if (_ev->state() & ControlButton)
     {

_______________________________________________
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