Change Ctrl+C to ⌘C, because Safari.

This commit is contained in:
я котик пур-пур 2015-10-01 09:40:15 +03:00
parent 02c44d4a17
commit ac184d4182

View File

@ -160,7 +160,7 @@ This library relies on both [Selection](https://developer.mozilla.org/en-US/docs
Although copy/cut operations with [execCommand](https://developer.mozilla.org/en-US/docs/Web/API/Document/execCommand) aren't supported on Safari yet (including mobile), it gracefully degrades because [Selection](https://developer.mozilla.org/en-US/docs/Web/API/Selection) is supported.
That means you can show a tooltip saying `Copied!` when `success` event is called and `Press Ctrl+C to copy` when `error` event is called because the text is already selected.
That means you can show a tooltip saying **Copied!** when `success` event is called and **Press ⌘C to copy** when `error` event is called because the text is already selected.
For a live demonstration, open this [site](https://zenorocha.github.io/clipboard.js/) on Safari.