1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-02 04:48:57 +02: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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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