mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
Add 'lock_vault' command (#1450)
* Update manifest.json Add additional command to lock the vault * Update shortcuts.ts add mousetrap binding for lock_vault command * Update commands.background.ts add option to lock vault with shortcut * Update messages.json add german key for lock_vault * Update messages.json add english key for 'lock_vault' command * remove commandLockVaultDesc from de message pack * Update messages.json * Update shortcuts.ts update comment for safari keybinding * Update shortcuts.ts remove confusing comment Co-authored-by: ljakobitz@dev5310.com <ljakobitz@dev5310.com> Co-authored-by: Kyle Spearrin <kspearrin@users.noreply.github.com>
This commit is contained in:
@@ -35,6 +35,10 @@ document.addEventListener('DOMContentLoaded', (event) => {
|
||||
});
|
||||
}
|
||||
|
||||
Mousetrap.bind('mod+shift+s', () => {
|
||||
sendMessage('lock_vault');
|
||||
});
|
||||
|
||||
function sendMessage(shortcut: string) {
|
||||
const msg: any = {
|
||||
command: 'keyboardShortcutTriggered',
|
||||
|
||||
Reference in New Issue
Block a user