question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

how to copy on something else other than click

See original GitHub issue

atm the lib support only copying on click event, but what if we want to change that to something like click.ctrl or any other event ?

in the original clipboard.js u can use data-clipboard-text and use any event to call new Clipboard(.itemClass)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
Inndycommented, Nov 8, 2017

$copyText is available in v0.0.7, check README before use it!

1reaction
ctf0commented, Nov 11, 2017

np, i got it fixed with $event.target.focus(). thanx again for ur work 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Copy and Paste Multiple Items at Once - Zapier
Or use a menu. Select text, right-click on it, then choose from the Cut, Copy, and Paste commands on any computer. How to...
Read more >
Copy and paste using the Office Clipboard - Microsoft Support
Select the first item that you want to copy, and press CTRL+C. Continue copying items from the same or other files until you...
Read more >
6 ways to cut, copy, and paste in Windows | Digital Citizen
Go to where you want to paste the data and right-click or press-and-hold to open another contextual menu. Click or tap on Paste....
Read more >
How to Copy and Paste Text to a Document or Another Program
Press the shortcut key combination Ctrl + V on a PC or Command + V on an Apple Mac. Tip. You can paste...
Read more >
4 Ways to Copy and Paste - wikiHow
1. Select what you want to copy: Text: To select text, click and drag the cursor until the text you want to copy is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found