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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user