allow shortcut when form fields focused

This commit is contained in:
Kyle Spearrin 2018-01-17 12:19:15 -05:00
parent 98c734bc09
commit f48066e918
1 changed files with 4 additions and 0 deletions

View File

@ -19,6 +19,10 @@ document.addEventListener('DOMContentLoaded', (event) => {
arguments)}}(b))};c.init();r.Mousetrap=c;"undefined"!==typeof module&&module.exports&&(module.exports=c);"function"===typeof define&&define.amd&&define(function(){return c})}})("undefined"!==typeof window?window:null,"undefined"!==typeof window?document:null); arguments)}}(b))};c.init();r.Mousetrap=c;"undefined"!==typeof module&&module.exports&&(module.exports=c);"function"===typeof define&&define.amd&&define(function(){return c})}})("undefined"!==typeof window?window:null,"undefined"!==typeof window?document:null);
/* mousetrap v1.6.1 craig.is/killing/mice */ /* mousetrap v1.6.1 craig.is/killing/mice */
Mousetrap.prototype.stopCallback = () => {
return false;
};
const autofillCommand = isSafari ? 'mod+\\' : 'mod+shift+l'; const autofillCommand = isSafari ? 'mod+\\' : 'mod+shift+l';
Mousetrap.bind(autofillCommand, () => { Mousetrap.bind(autofillCommand, () => {
sendMessage('autofill_login'); sendMessage('autofill_login');