Interacting With Firefox Addons By Javascript
My case is when the user press f10 i want to run the copy paste addons in Firefox. in the case i want to implement a listener for this key and when this key pressed run the addon
Solution 1:
This copies text to the native clipboard. Not logical clipboard. Apparently those are different things.
var gClipboardHelper = Components.classes["@mozilla.org/widget/clipboardhelper;1"].getService(Components.interfaces.nsIClipboardHelper);
gClipboardHelper.copyString("Put me on the clipboard, please.")
Post a Comment for "Interacting With Firefox Addons By Javascript"