GoogleChrome / samples

A repo containing samples tied to new functionality in each release of Google Chrome.
https://www.chromestatus.com/samples
Apache License 2.0
5.77k stars 2.38k forks source link

A small update that allows text to be pasted manually into the textbo… #748

Open maquarius opened 2 years ago

maquarius commented 2 years ago

…x and fixes the error that happend when pasting manually.

If the manual pasting is prevented intentionally then e.preventDefault(); needs to be reverted. navigator.clipboard.getText() doesn't work nontheless

google-cla[bot] commented 2 years ago

We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. In order to pass this check, please resolve this problem and then comment @googlebot I fixed it.. If the bot doesn't comment, it means it doesn't think anything has changed.

ℹ️ Googlers: Go here for more info.

maquarius commented 2 years ago

@googlebot I fixed it.

maquarius commented 2 years ago

@developit Tagging you since you worked on the project.

developit commented 2 years ago

LGTM!