On Tue, Sep 02, 2003 at 06:57:13PM +0000, Angus Leeming spake thusly: > On Tuesday 02 September 2003 5:56 pm, Martin Vermeer wrote: > > > The toggle code in all it's glory is (text3.C): > > > case LFUN_INSET_TOGGLE: > > > bv->beforeChange(this); > > > toggleInset(); > > > bv->update(); > > > bv->switchKeyMap(); > > > break; > > > > > > Angus > > > > ...but am I right in seeing that this code doesn't actually move the > > cursor? I.e., contrary to your description above? > > No, it moves the cursor. See below.
All I see is a cursor moving right from under a collapsing inset. That doesn't count :-) > Perhaps you might split this into two and create LFUN_INSET_GOTO_NEXT or some > such? If you get adventurous, you might allow it to take an optional argument > so that you can choose what sort of inset to goto: > lfun_inset_goto_next "citation" > There are a whole heap of LFUN.*GOTO lfuns that could be collapsed into one... > > Maybe that's for another day ;-) Yes ;-) > Angus > > void LyXText::toggleInset() - Martin
pgp00000.pgp
Description: PGP signature