mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 05:57:58 +01:00
new liberator.util.readFromClipboard, so also non-Firefox extensions have access to the clipboard
This commit is contained in:
@@ -463,17 +463,6 @@ const liberator = (function () //{{{
|
||||
}
|
||||
},
|
||||
|
||||
// XXX? move to liberator.util?
|
||||
copyToClipboard: function (str, verbose)
|
||||
{
|
||||
var clipboardHelper = Components.classes["@mozilla.org/widget/clipboardhelper;1"]
|
||||
.getService(Components.interfaces.nsIClipboardHelper);
|
||||
clipboardHelper.copyString(str);
|
||||
|
||||
if (verbose)
|
||||
liberator.echo("Yanked " + str, liberator.commandline.FORCE_SINGLELINE);
|
||||
},
|
||||
|
||||
// Execute an ex command like str=":zoom 300"
|
||||
execute: function (str, modifiers)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user