W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2012

Re: [Clipboard] checking if implementation allows reading/writing a given type to the OS clipboard

From: Paul Libbrecht <paul@hoplahup.net>
Date: Sat, 18 Feb 2012 23:03:05 +0100
Cc: public-webapps@w3.org
Message-Id: <FBC47E29-3530-4C20-928D-1657B8A23FA7@hoplahup.net>
To: "Hallvord R. M. Steen" <hallvord@opera.com>

Le 18 févr. 2012 à 16:25, Hallvord R. M. Steen a écrit :

>> Does this include an ability for a page to say that a media-type is supported?
>> (does it not appear natural?)
> Hm.. you mean a page should be able to say "Hello web browser, I just luuuuve processing application/pdf data from the clipboard" ? I don't see the use case for that. If I'm misunderstanding you please clarify :-)

It means that if pdf is in the clipboard the paste command can stop being greyed out!
Otherwise the user is left to try and be told by the web-page: please please do it!

Similarly, shouldn't something such as
> if(event.clipboardData.isTypeSupported('foo/bar')) ...

be callable before the event is triggered?
This way the page can display the necessary invites to the user to make it clear that something can be copied?

Received on Saturday, 18 February 2012 22:03:33 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:38 UTC