diff --git a/js/background.js b/js/background.js index bc7e168481d9..605a423f68b1 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 723a52de5061..70576cc31bc9 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." + } } + }