From 76aa1bb75f48bb9dac51864f97dd286f533e457e Mon Sep 17 00:00:00 2001 From: Jeremy Maitin-Shepard Date: Mon, 7 Apr 2008 11:17:42 -0400 Subject: [PATCH] Fix browser_prevent_automatic_form_focus mode --- modules/content-buffer-input.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/content-buffer-input.js b/modules/content-buffer-input.js index 2dcf45c..ea863b2 100644 --- a/modules/content-buffer-input.js +++ b/modules/content-buffer-input.js @@ -69,7 +69,7 @@ function content_buffer_update_input_mode_for_focus(buffer, force) { else if (elem instanceof Ci.nsIDOMHTMLSelectElement) input_mode_function = select_input_mode; - + if (input_mode_function) { if (!force && browser_prevent_automatic_form_focus_mode_enabled && @@ -88,7 +88,7 @@ function content_buffer_update_input_mode_for_focus(buffer, force) { } } -add_hook("content_buffer_focus_change_hook", content_buffer_update_input_mode_for_focus); +add_hook("content_buffer_focus_change_hook", function (buf) { content_buffer_update_input_mode_for_focus(buf, false); } ); interactive("content-buffer-update-input-mode-for-focus", function (I) { content_buffer_update_input_mode_for_focus(I.buffer, true); -- 2.11.4.GIT