From 6ce9c8137ad2d2d00fe8596d22c0f93177600faa Mon Sep 17 00:00:00 2001 From: fukayatsu Date: Fri, 4 Oct 2013 01:36:53 +0900 Subject: Add shortcut to pin/unpin Tab --- background_scripts/main.coffee | 3 +++ 1 file changed, 3 insertions(+) (limited to 'background_scripts/main.coffee') diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee index f564f477..207cbccb 100644 --- a/background_scripts/main.coffee +++ b/background_scripts/main.coffee @@ -257,6 +257,9 @@ BackgroundCommands = callback())) openCopiedUrlInCurrentTab: (request) -> openUrlInCurrentTab({ url: Clipboard.paste() }) openCopiedUrlInNewTab: (request) -> openUrlInNewTab({ url: Clipboard.paste() }) + togglePinTab: (request) -> + chrome.tabs.getSelected(null, (tab) -> + chrome.tabs.update(tab.id, { pinned: !tab.pinned })) showHelp: (callback, frameId) -> chrome.tabs.getSelected(null, (tab) -> chrome.tabs.sendMessage(tab.id, -- cgit v1.2.3