From f48066e918a85ee4ab01e7259803e6ea7ca144b6 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 17 Jan 2018 12:19:15 -0500 Subject: [PATCH] allow shortcut when form fields focused --- src/content/shortcuts.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/content/shortcuts.js b/src/content/shortcuts.js index f0d0f72a26..7e3f73af60 100644 --- a/src/content/shortcuts.js +++ b/src/content/shortcuts.js @@ -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); /* mousetrap v1.6.1 craig.is/killing/mice */ + Mousetrap.prototype.stopCallback = () => { + return false; + }; + const autofillCommand = isSafari ? 'mod+\\' : 'mod+shift+l'; Mousetrap.bind(autofillCommand, () => { sendMessage('autofill_login');