[w3c/clipboard-apis] Remove clipboardchange event (and replace it possibly with a promise returning method) (Issue #228)

The current definition for clipboardchange event is such that it doesn't work too well in the model Safari and Firefox have (paste requires explicit click on a button).
And if we require always transient user activation before the event, it would be more ergonomic to have something like
element.onclick = () => clipboard.checkCurrentClipboardTypes().then((listOfBuiltinTypes) => { /*do something*/});

(I'm not saying Firefox would necessarily implement that API, since it is still rather privacy sensitive)

-- 
Reply to this email directly or view it on GitHub:
https://github.com/w3c/clipboard-apis/issues/228
You are receiving this because you are subscribed to this thread.

Message ID: <w3c/clipboard-apis/issues/228@github.com>

Received on Friday, 27 September 2024 15:25:58 UTC