W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2011

Re: clipboard events

From: Joćo Eiras <joao.eiras@gmail.com>
Date: Mon, 09 May 2011 23:18:34 +0100
To: public-webapps@w3.org
Message-ID: <op.vu8iw80ejz3wb9@coruscant>

> 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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:13:19 UTC