1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-14 07:13:32 +00:00

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

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',