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

Re: [clipboard events] implicitly prevent default event action?

From: Anne van Kesteren <annevk@annevk.nl>
Date: Mon, 19 May 2014 15:58:07 +0200
Message-ID: <CADnb78i4QeEMPn+BR6pNeFRGU01FkzaRNaHNcB+5-Ns0eheVHA@mail.gmail.com>
To: "Hallvord R. M. Steen" <hsteen@mozilla.com>
Cc: public-webapps <public-webapps@w3.org>
On Mon, May 19, 2014 at 3:50 PM, Hallvord R. M. Steen
<hsteen@mozilla.com> wrote:
> a) The event is script-generated and has a data payload (new ClipboardEvent('copy', {dataType:'text/plain', data:'Hi World'}))
> b) Any event listener calls setData() or modifies the DataTransfer payload some other way
> Thoughts?

Can you sanely explain those using a JavaScript implementation or
would that be some kind of weird stack-inspecting feature?

The current model is something like


I guess you could put another check before defaultAction() so that
would probably work...

Received on Monday, 19 May 2014 13:58:39 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:14:24 UTC