aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2017-03-06 03:30:18 +0100
committerTeddy Wing2017-03-06 03:30:18 +0100
commit91c43a2256d4622413fcf653c449dd4968e2818f (patch)
treefcfa0ebcdf33674f978dec7cf9a78c335f741679
parent11bd4c0ddc4047e78ef3bb850f728aa4917110c4 (diff)
parent09b38f5c90fb3fd2c5556cb28c1b63ef058f650d (diff)
downloadchrome-copy-urls-from-all-tabs-91c43a2256d4622413fcf653c449dd4968e2818f.tar.bz2
Merge branch 'add-keyboard-shortcut'v0.3.0
-rw-r--r--CHANGELOG3
-rw-r--r--background.js8
-rw-r--r--manifest.json13
3 files changed, 22 insertions, 2 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 379efbd..ce26c3b 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -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"
+ }
+ }
}