Juergen Spitzmueller wrote:

> Alfredo Braunstein:
>> A last minute question: have you checked it works inside floats/minipages
>> etc? I must admit that the whole current "deep" selection thing look like
>> dark magic to me (why/when to use the top-level insettext, .i.e
>> bv->getLyXTexT() etc)
> 
> A good question. I haven't checked indeed, and it shows that return and
> paste does not work inside footnotes/minipages etc. while quote,
> date-insert, specialchar work.
> How can I deal with this?


LFUN_PASTE etc are handled directly in insets/insettext.C (why, I don't have
the palest idea) that calls directly LyXText::pasteSelection, instead of
passing the LFUN down. So I suppose you'll have to add your
overwriteSelection also to insettext.C. Another choice is to call directly
"update; LyXText::cutSelection(...,true); update;" every time, as the
update will go at some time. 

Or better to fix this LFUN mess ;^)

Hope this helps,

Alfredo


Reply via email to