Press Ctrl+C to copy -> Press Command+C to copy (#252)

As Safari users are mostly using mac, coping a text needs Command+C instead of Ctrl+C
This commit is contained in:
Ali Bozorgkhan 2016-06-02 15:28:16 -07:00 committed by Zeno Rocha
parent c3fefc1fc0
commit 79c3361ca4

View File

@ -168,7 +168,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 Command+C to copy` when `error` event is called because the text is already selected.
For a live demonstration, open this [site](http://clipboardjs.com) on Safari.