Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove clipboardchange event (and replace it possibly with a promise returning method) #228

Open
smaug---- opened this issue Sep 27, 2024 · 0 comments

Comments

@smaug----
Copy link

smaug---- commented Sep 27, 2024

The current definition for clipboardchange event is such that it doesn't work too well with 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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant