W3C home > Mailing lists > Public > www-svg@w3.org > April 2004

RE:RE:RE: Clipboard access through events

From: Jan-Klaas Kollhof <keyjaque@yahoo.com>
Date: Tue, 6 Apr 2004 05:35:07 -0700 (PDT)
Message-ID: <20040406123507.12937.qmail@web60109.mail.yahoo.com>
To: www-svg@w3.org

Hi,

>What if the author wanted to make some toolbar
buttons in >their application for copying and
pasteing?

That is a problem, even special attributes would not
work, because one could emulate a click event on that
button by just dispatching a click event on that
element.
Also one could always make then any button usable for
pasting without the user knowing.

Maybe then the approach of accessing the clipboard
directly should be used with a warning.
clipborad.dispatchPasteEvt() might dispatch a paste
event after the user has then given his OK.
It's not very pretty but would work without creating
any security holes.
I would consider this as a fallback but not as default
behavior.


Jan

__________________________________
Do you Yahoo!?
Yahoo! Small Business $15K Web Design Giveaway 
http://promotions.yahoo.com/design_giveaway/
Received on Tuesday, 6 April 2004 08:35:38 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:27 GMT