Andre Poenitz wrote: > So why is handling of this lfun not postponed until the right level came > up? > > As far as I can tell there are two cases: > > 1. LFUN_TOGGLE is applied to the 'thing to the right'. Should be handled > in LyXText::dipatch. > > 2. LFUN_TOGGLE is applied to an inset the cursor is in. The inset's > dispatch + FINISHED mutation should be ok.
So what do you propose exactly? We want to "dispatch to all insets". I.e. all-insets-toggle close. it's pretty different to "dispatch to some position and the deepest inset that wants it takes it". Hence it seems to me that we need this (very simple btw) separate dispatch "mechanism". Alfredo