From 733e3a1bd3e07cb4e86ad461ed2a2b0a37e31ce4 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Fri, 12 Nov 2010 14:24:41 -0500 Subject: [PATCH] Fix command-line focus issue on Gecko 1.9.1. Closes issue #133. --HG-- extra : rebase_source : f7f6caab056b802628c637774fb7e45c89b82b4b --- common/content/commandline.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/content/commandline.js b/common/content/commandline.js index 8f28ddda..a0a4922e 100644 --- a/common/content/commandline.js +++ b/common/content/commandline.js @@ -49,10 +49,10 @@ const CommandWidgets = Class("CommandWidgets", { } catch (e) {} } - if (elem.collapsed) + if (!elem.collapsed) elem.focus(); }, - onVisibility: function (elem, visible) visible && elem.focus() + onVisibility: function (elem, visible) { visible && elem.focus() } }); this.addElement({ name: "prompt",