> 
> Here is the next patch... adding a cur.undispatched() statement did the job. 
> So the LFUN_FINISHED mechanism seems to work... in this case, it allowed
> he cursor to skip out of the inset, immediately to the right of the 
> parentesis, when pressing the END key. But how now do I get it to go
> forward to the next parentesis, i.e., execute LFUN_END for the parent
> inset? (Yes, I know, pressing the END key again. Not what I wanted to hear :)
> 
> - Martin

Here is the same patch extended to include grid-style sub-insets. Works
a charm.

I'll commit later if everybody is happy.

- Martin

Index: ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/ChangeLog,v
retrieving revision 1.490
diff -u -r1.490 ChangeLog
--- ChangeLog   9 Apr 2005 11:13:21 -0000       1.490
+++ ChangeLog   9 Apr 2005 16:41:41 -0000
@@ -1,5 +1,11 @@
 2005-04-09  Martin Vermeer  <[EMAIL PROTECTED]>
 
+       * math_gridinset.C (doDispatch):
+       * math_nestinset.C (doDispatch): enable HOME/END keys to skip 
+       out of inset (adding cur.undispatched())
+
+2005-04-09  Martin Vermeer  <[EMAIL PROTECTED]>
+
        * math_colorinset.C (draw): fix crash and cursor positioning.
 
 2005-04-07  Martin Vermeer  <[EMAIL PROTECTED]>
Index: math_gridinset.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_gridinset.C,v
retrieving revision 1.159
diff -u -r1.159 math_gridinset.C
--- math_gridinset.C    7 Apr 2005 09:06:08 -0000       1.159
+++ math_gridinset.C    9 Apr 2005 16:41:41 -0000
@@ -1210,6 +1210,7 @@
                        cur.pos() = 0;
                } else {
                        cmd = FuncRequest(LFUN_FINISHED_LEFT);
+                       cur.undispatched();
                }
                break;
 
@@ -1230,6 +1231,7 @@
                        cur.pos() = cur.lastpos();
                } else {
                        cmd = FuncRequest(LFUN_FINISHED_RIGHT);
+                       cur.undispatched();
                }
                break;
 
Index: math_nestinset.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_nestinset.C,v
retrieving revision 1.150
diff -u -r1.150 math_nestinset.C
--- math_nestinset.C    8 Apr 2005 12:15:28 -0000       1.150
+++ math_nestinset.C    9 Apr 2005 16:41:41 -0000
@@ -555,6 +555,7 @@
                        cur.pos() = 0;
                } else {
                        cmd = FuncRequest(LFUN_FINISHED_LEFT);
+                       cur.undispatched();
                }
                break;
 
@@ -575,6 +576,7 @@
                        cur.pos() = cur.lastpos();
                } else {
                        cmd = FuncRequest(LFUN_FINISHED_RIGHT);
+                       cur.undispatched();
                }
                break;
 

Attachment: pgpEwNxu5Jibc.pgp
Description: PGP signature

Reply via email to