msiebuhr / charcod.es

Small webpage for finding the odd unicode char code.
https://charcodes.netlify.app/
ISC License
18 stars 3 forks source link

Copy-button for grabbing the code quickly #46

Closed msiebuhr closed 8 years ago

msiebuhr commented 9 years ago

For those of us no longer spending time in Unixes w. mark-to-copy....

Munter commented 9 years ago

This is a very difficult thing to do due to security restrictions. What we could do is hook into the copy/cut event and inject the char into the clipboard then. However that would also override any copying of escaped versions of the char, like html or latex versions

msiebuhr commented 9 years ago

Github does seem to have a quite well-functioning copy-button for repository URLs; screen shot 2015-02-02 at 12 22 39 2

Couldn't we drop in a library like that?

msiebuhr commented 9 years ago

Here we go: http://zeroclipboard.org/

Munter commented 9 years ago

Yup. Flash dependency

msiebuhr commented 9 years ago

Hey - http://caniuse.com/#feat=clipboard

msiebuhr commented 9 years ago

Ping @omichelsen :)

msiebuhr commented 8 years ago

Fixed by #49.

Thanks, @omichelsen!