lock vault shortcut only for safari (#1452)

This commit is contained in:
Kyle Spearrin 2020-11-06 10:51:35 -05:00 committed by GitHub
parent 6b6fc33b6f
commit c4e88ac1bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -29,16 +29,16 @@ document.addEventListener('DOMContentLoaded', (event) => {
Mousetrap.bind('mod+shift+y', () => {
sendMessage('open_popup');
});
Mousetrap.bind('mod+shift+s', () => {
sendMessage('lock_vault');
});
} else {
Mousetrap.bind('mod+shift+9', () => {
sendMessage('generate_password');
});
}
Mousetrap.bind('mod+shift+s', () => {
sendMessage('lock_vault');
});
function sendMessage(shortcut: string) {
const msg: any = {
command: 'keyboardShortcutTriggered',