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

Re: Clipboard API spec should specify beforecopy, beforecut, and beforepaste events

From: Ryosuke Niwa <rniwa@webkit.org>
Date: Tue, 1 May 2012 23:04:49 -0700
Message-ID: <CABNRm63P4mmcZz1is8G6xeXCtCPFTZNYP=V+qtMBzm1CiM010A@mail.gmail.com>
To: Aryeh Gregor <ayg@aryeh.name>
Cc: Boris Zbarsky <bzbarsky@mit.edu>, Scott González <scott.gonzalez@gmail.com>, public-webapps <public-webapps@w3.org>
On Tue, May 1, 2012 at 11:02 PM, Aryeh Gregor <ayg@aryeh.name> wrote:

> On Wed, May 2, 2012 at 3:56 AM, Ryosuke Niwa <rniwa@webkit.org> wrote:
> > That might make sense given how confusing these before* are.
> >
> > On the other hand, there are use cases to communicate enabledness of cut,
> > copy, & paste with UA. Maybe we can address this use case by letting
> > websites override
> >
> queryCommandEnabled('cut'), queryCommandEnabled('copy'), queryCommandEnabled('paste')?
> >
> > Aryeh, any opinions here?
>
> "enabled" is pretty useless, so I have no problem making it more
> useful for specific commands.  But browsers don't generally support
> the cut/copy/paste events in public web pages at all.  It would be
> quite confusing for queryCommandEnabled("cut") to mean "can the *user*
> perform a cut" rather than "will execCommand('cut') do anything".
>

That's a good point. What would be a viable alternative then?

- Ryosuke
Received on Wednesday, 2 May 2012 06:05:39 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:52 GMT