1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 13:22:28 +01:00

fixed esc for muttator

This commit is contained in:
Martin Stubenschrott
2008-11-30 01:04:52 +00:00
parent 6bc100c356
commit 7ffb52febd

View File

@@ -121,7 +121,8 @@ const modes = (function () //{{{
// Kludge to prevent the input field losing focus on MS/Mac
setTimeout(function () {
let focus = document.commandDispatcher.focusedElement;
if (focus != document.getElementById("urlbar").inputField)
let urlbar = document.getElementById("urlbar");
if (!urlbar || focus != urlbar.inputField)
liberator.focusContent(false);
}, 100);
}