From 7ffb52febd1e4fc6212fd5a1a232b52bcc8c332a Mon Sep 17 00:00:00 2001 From: Martin Stubenschrott Date: Sun, 30 Nov 2008 01:04:52 +0000 Subject: [PATCH] fixed esc for muttator --- content/modes.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/modes.js b/content/modes.js index 535f1cfa..b8ab553a 100644 --- a/content/modes.js +++ b/content/modes.js @@ -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); }