1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-03 15:54:11 +01:00

move the global copyToClipboard() to a slot in vimperator

This commit is contained in:
Doug Kearns
2007-08-05 06:43:40 +00:00
parent 022e455d48
commit b9bbc07ad2
4 changed files with 11 additions and 11 deletions

View File

@@ -207,6 +207,13 @@ const vimperator = (function() //{{{
sound_service.beep();
},
copyToClipboard: function(str)
{
var clipboardHelper = Components.classes["@mozilla.org/widget/clipboardhelper;1"]
.getService(Components.interfaces.nsIClipboardHelper);
clipboardHelper.copyString(str);
},
execute: function(string, modifiers)
{
// skip comments and blank lines