Firefox Add-on link: https://addons.mozilla.org/en-US/firefox/addon/ffclipboard/
Originally created to workaround ZeroClipboard's limitation of only working on mouse clicks.
Once this Add-On is installed into Firefox >= 34, every page has an additional window.ffclipboard
object which allow access to the Firefox Add-On SDK's clipboard.
if (window.ffclipboard) {
window.ffclipboard.setText("clipboard text");
}
if (window.ffclipboard) {
$("#somelink").keypress(function(e) {
if (e.which == 13) {
window.ffclipboard.setText("clipboard text");
}
});
}
$ cd src
$ export PATH=${ADDONSDK}/bin/:$PATH
$ activate
$ cfx run
# To build an XPI:
$ cfx xpi