[Laszlo-dev] What was the reason for setting document.onselectstart in LzInputTextSprite?

André Bargull andre.bargull at udo.edu
Tue Jun 2 08:48:56 PDT 2009


r6826 for LPP-4170

>  This dates back to LPP-4715.
>
>
> On Tue, Jun 2, 2009 at 9:57 AM , Henry Minsky wrote:
>
>   There's some code in the kernel DHTML LzInputTextSprite which globally 
> disables the onselectstart
>
> // prevent text selection in IE
> // can't use lz.embed.attachEventHandler because we need to cancel 
> events
>     document.onselectstart = LzTextSprite.prototype.__cancelhandler;
>     document.ondrag =  LzTextSprite.prototype.__cancelhandler;
>
> What was the need for that? Why wasn't it sufficient to rely on the 
> LzTextSprite.setSelectable behavior
> (which sets         this.__LZdiv.onselectstart = 
> LzTextSprite.prototype.__cancelhandler )? Or was this
> to fix some other issue besides toggling (input) text selectability?
>
>
> -- 
> Henry Minsky
> Software Architect
> hminsky at laszlosystems.com <http://www.openlaszlo.org/mailman/listinfo/laszlo-dev> <mailto:hminsky at laszlosystems.com <http://www.openlaszlo.org/mailman/listinfo/laszlo-dev>>	
>   




More information about the Laszlo-dev mailing list