diff options
| author | Teddy Wing | 2017-03-06 03:30:18 +0100 | 
|---|---|---|
| committer | Teddy Wing | 2017-03-06 03:30:18 +0100 | 
| commit | 91c43a2256d4622413fcf653c449dd4968e2818f (patch) | |
| tree | fcfa0ebcdf33674f978dec7cf9a78c335f741679 | |
| parent | 11bd4c0ddc4047e78ef3bb850f728aa4917110c4 (diff) | |
| parent | 09b38f5c90fb3fd2c5556cb28c1b63ef058f650d (diff) | |
| download | chrome-copy-urls-from-all-tabs-91c43a2256d4622413fcf653c449dd4968e2818f.tar.bz2 | |
Merge branch 'add-keyboard-shortcut'v0.3.0
| -rw-r--r-- | CHANGELOG | 3 | ||||
| -rw-r--r-- | background.js | 8 | ||||
| -rw-r--r-- | manifest.json | 13 | 
3 files changed, 22 insertions, 2 deletions
| @@ -1,6 +1,9 @@  CHANGELOG  ========= +0.3.0 (2017.03.06): +	* Add a keyboard shortcut to download the file +  0.2.0 (2015.02.15):  	* Add an option to change the downloaded filename prefix  	* README: update installation instructions diff --git a/background.js b/background.js index b87bd04..393de06 100644 --- a/background.js +++ b/background.js @@ -51,4 +51,12 @@ chrome.browserAction.onClicked.addListener(function(tab) {  			openOrFocusOptionsPage();  		}  	}); +}); + + +// Handle keyboard shortcut +chrome.commands.onCommand.addListener(function(command) { +	if (command === 'download') { +		download_backup_file(); +	}  });
\ No newline at end of file diff --git a/manifest.json b/manifest.json index 1dca7ac..827cc1a 100644 --- a/manifest.json +++ b/manifest.json @@ -3,7 +3,7 @@  	"name": "Chrome Copy URLs From All Tabs",  	"description": "What the name says", -	"version": "0.2.0", +	"version": "0.3.0",  	"icons": {  		"16": "images/icon-16.png", @@ -28,5 +28,14 @@  	"permissions": [  		"tabs",  		"storage" -	] +	], + +	"commands": { +		"download": { +			"suggested_key": { +				"default": "MacCtrl+L" +			}, +			"description": "Download URL file" +		} +	}  } | 
