mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-07 19:07:45 +01:00
lock vault shortcut only for safari (#1452)
This commit is contained in:
parent
6b6fc33b6f
commit
c4e88ac1bc
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user