diff options
| author | Murphy McMahon | 2011-07-14 09:35:14 -0300 |
|---|---|---|
| committer | Murphy McMahon | 2011-07-14 09:35:14 -0300 |
| commit | 6ccdb189c575e5f1c539e7fed9f39d2f683b16d4 (patch) | |
| tree | 123a912e36fac9d97937fd9f5a5e8f1d0c39cafc /background_page.html | |
| parent | 24bb9827ebb86fe8b59d2959aa1dd40f98657049 (diff) | |
| download | vimium-6ccdb189c575e5f1c539e7fed9f39d2f683b16d4.tar.bz2 | |
Added clipboard copying to linkHints mode (default binding: 'Y')
Diffstat (limited to 'background_page.html')
| -rw-r--r-- | background_page.html | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/background_page.html b/background_page.html index 71bbcf7a..5de86bca 100644 --- a/background_page.html +++ b/background_page.html @@ -81,6 +81,7 @@ upgradeNotificationClosed: upgradeNotificationClosed, updateScrollPosition: handleUpdateScrollPosition, copyToClipboard: copyToClipboard, + copyLinkUrl: copyLinkUrl, isEnabledForUrl: isEnabledForUrl, saveHelpDialogSettings: saveHelpDialogSettings }; @@ -261,6 +262,14 @@ chrome.tabs.create({ url: request.url, index: tab.index + 1, selected: request.selected }); }); } + + /** + * Copies url of selected link to the clipboard (wget ftw) + */ + function copyLinkUrl(request) { + Clipboard.copy(request.data); + } + /* * Returns the core CSS used for link hints, along with any user-provided overrides. */ |
