>>>>> "John" == John Levon <[EMAIL PROTECTED]> writes:

John> On Mon, Aug 04, 2003 at 11:19:34PM +0200, Jean-Marc Lasgouttes
John> wrote:
>> So I did that and the thing works (wow!) *but* selection is
>> broken...
>> 
>> So this is the place in my message where I say: ``John, I need your
>> help!''

John> Well, I spent some time looking and have come up with a
John> hypothesis :

John> Going through lyxfunc::dispatch() triggers a bv->fitCursor()
John> call at the end of dispatch(). This invokes that infernal
John> LFUN_PARAGRAPH_UPDATE. That resets the selection
John> (selection.cursor = cursor). So the selection stays empty.

John> Maybe you have the energy to test this hypothesis. As for a fix
John> ... well ...

And do you know what the 
        selection_possible = false;
line in lyxfunc::dispatch is supposed to do?

Maybe I should just add a new 'droppedFile' signal to workarea and call
that directly... Would that make sense?

John> p.s. if we wanted to be really cool we'd accept images too :)

And text too. then we would have to do this nice thing of having the
cursor move to show exactly where the object would be inserted. Too
difficult for me :)

JMarc

Reply via email to