On Mon, Aug 19, 2002 at 12:12:35PM +0200, Jean-Marc Lasgouttes wrote:
> Andre> Ok. Nobody complained for almost three days now and I've used
> Andre> it successfully for a whole morning (whoahey..), so I'll just
> Andre> commit what I have soon.
> 
> I have a question now that you have done all this work: why do we have
> LFUNs corresponding to mouse action, whereas it would seem more
> reasonable to have LFUNs corresponding to actions LFUN_SETCURSOR, say,
> and bind them to mouse clicks
> \bind "Mouse1" "setcursor"

Good question. I don't know.

Maybe it's just because we are still not as flexible as we want to be.
Currently every inset's reaction is hard-wired. I guess "localized
bindings" as in 

 \bind "text:Mouse1" "cursor-set"
 \bind "math:Mouse1" "cursor-set"
 \bind "ref:Mouse1" "dialog-open"

would be nice to have in the end.

Anyway, it would be not much work to change the lfun from LFUN_MOUSE_PRESS
to LFUN_SETCURSOR if people think this is more sensible.

Andre'

-- 
Those who desire to give up Freedom in order to gain Security,
will not have, nor do they deserve, either one. (T. Jefferson)

Reply via email to