Re: clipboard events

> I think you'd want to push the script-added data regardless of whether the
> event is canceled or not. Why would the script add the data otherwise?
>
> I would just model the 'copy' (and 'cut') events exactly as a 'dragstart'
> event, ideally so much so that you can literally use the same function for
> both. (Canceling 'cut' would prevent the default deletion of the
> selection, canceling 'copy' has no effect.)
>

Shouldn't canceling 'copy' prevent the data from being placed in the clipboard ? That way a script can instead explicitly set the contents of the clipboard, if some sanitization needs to be done.

Received on Monday, 9 May 2011 22:19:05 UTC