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
1 changed files with 6 additions and 1 deletions

View File

@ -18,7 +18,12 @@ document.addEventListener('DOMContentLoaded', (event) => {
return false; 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, () => { Mousetrap.bind(autofillCommand, () => {
sendMessage('autofill_login'); sendMessage('autofill_login');
}); });