1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-06 00:48:08 +02:00

cmd + 8 to autofill for safari (#1292)

This commit is contained in:
Kyle Spearrin 2020-06-12 12:50:56 -04:00 committed by GitHub
parent 29b370961e
commit 6e04920180
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,12 @@ document.addEventListener('DOMContentLoaded', (event) => {
return false;
};
const autofillCommand = isSafari || isEdge ? ['mod+\\', 'mod+9'] : ['mod+shift+l'];
let autofillCommand = ['mod+shift+l'];
if (isSafari) {
autofillCommand = ['mod+\\', 'mod+8'];
} else if (isEdge) {
autofillCommand = ['mod+\\', 'mod+9'];
}
Mousetrap.bind(autofillCommand, () => {
sendMessage('autofill_login');
});