mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-09 19:28:06 +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', () => {
|
Mousetrap.bind('mod+shift+y', () => {
|
||||||
sendMessage('open_popup');
|
sendMessage('open_popup');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Mousetrap.bind('mod+shift+s', () => {
|
||||||
|
sendMessage('lock_vault');
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
Mousetrap.bind('mod+shift+9', () => {
|
Mousetrap.bind('mod+shift+9', () => {
|
||||||
sendMessage('generate_password');
|
sendMessage('generate_password');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
Mousetrap.bind('mod+shift+s', () => {
|
|
||||||
sendMessage('lock_vault');
|
|
||||||
});
|
|
||||||
|
|
||||||
function sendMessage(shortcut: string) {
|
function sendMessage(shortcut: string) {
|
||||||
const msg: any = {
|
const msg: any = {
|
||||||
command: 'keyboardShortcutTriggered',
|
command: 'keyboardShortcutTriggered',
|
||||||
|
Loading…
Reference in New Issue
Block a user