From 66b19d5cf7c1cc357e5eab5a9149e71f1e5ca5c4 Mon Sep 17 00:00:00 2001 From: r-clancy Date: Wed, 3 May 2017 23:22:47 -0300 Subject: [PATCH] Add support for opening the inbox via a shortcut - fixes #1134. --- js/background.js | 5 +++++ manifest.json | 10 ++++++++++ 2 files changed, 15 insertions(+) diff --git a/js/background.js b/js/background.js index bc7e16848..605a423f6 100644 --- a/js/background.js +++ b/js/background.js @@ -339,5 +339,10 @@ } }); + chrome.commands.onCommand.addListener(function(command) { + if (command === 'show_signal') { + openInbox(); + } + }); })(); diff --git a/manifest.json b/manifest.json index 723a52de5..70576cc31 100644 --- a/manifest.json +++ b/manifest.json @@ -30,5 +30,15 @@ "background": { "page": "background.html" } + }, + + "commands": { + "show_signal": { + "suggested_key": { + "default": "Alt+S" + }, + "description": "Show the Signal inbox." + } } + }