From 257db25df266341f8bea982ad5314495489ded9f Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Fri, 14 Nov 2008 21:07:43 +0000 Subject: [PATCH] Kludge to enable focusing the input field on Mac/MS --- content/modes.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/content/modes.js b/content/modes.js index 30895056..91e03d4b 100644 --- a/content/modes.js +++ b/content/modes.js @@ -137,7 +137,12 @@ const modes = (function () //{{{ options.setPref("accessibility.browsewithcaret", false); statusline.updateUrl(); - liberator.focusContent(false); + // Kludge to prevent the input field losing focus on MS/Mac + setTimeout(function () { + let focus = document.commandDispatcher.focusedElement; + if (focus != document.getElementById("urlbar").inputField) + liberator.focusContent(false); + }, 100); } }