Add support for opening the inbox via a shortcut - fixes #1134.

This commit is contained in:
r-clancy 2017-05-03 23:22:47 -03:00 committed by Scott Nonnenberg
parent d294cc96a5
commit 66b19d5cf7
2 changed files with 15 additions and 0 deletions

View file

@ -339,5 +339,10 @@
}
});
chrome.commands.onCommand.addListener(function(command) {
if (command === 'show_signal') {
openInbox();
}
});
})();

View file

@ -30,5 +30,15 @@
"background": {
"page": "background.html"
}
},
"commands": {
"show_signal": {
"suggested_key": {
"default": "Alt+S"
},
"description": "Show the Signal inbox."
}
}
}