artemave / translate_onhover

Browser translation extension
https://chrome.google.com/webstore/detail/aggiiclaiamajehmlfpkjmlbadmkledi
205 stars 61 forks source link

Copy translated text with shortcut #20

Closed viniciuskoerich closed 7 years ago

viniciuskoerich commented 12 years ago

When a text is translated, I try to copy it to save on my notepad. But when there is no such option, I have to write the text translated by transover in Notepad.

My suggestion is to apply a shortcut (CTRL + Y) language in javascript, where copying a translated text in "transover-tooltip" class element.

Any idea will be appreciated.

artemave commented 12 years ago

To clarify: you need a way to copy translated text to clipboard?

viniciuskoerich commented 12 years ago

Yes. Copy translated text at "transover-tooltip" class to clipboard.

However, searching for a solution with javascript stackoverflow.com, probably we would insert a flash: http://stackoverflow.com/questions/400212/how-to-copy-to-the-clipboard-in-javascript?lq=1

Any suggestion?

artemave commented 7 years ago

Done