aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--background.js8
-rw-r--r--manifest.json11
2 files changed, 18 insertions, 1 deletions
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..84c65c8 100644
--- a/manifest.json
+++ b/manifest.json
@@ -28,5 +28,14 @@
"permissions": [
"tabs",
"storage"
- ]
+ ],
+
+ "commands": {
+ "download": {
+ "suggested_key": {
+ "default": "MacCtrl+L"
+ },
+ "description": "Download URL file"
+ }
+ }
}