From 7645fca3fe49ecb816af1c564da767ecce453b3e Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Mon, 27 Sep 2010 15:06:31 -0400 Subject: [PATCH] Focus the command-line with its value changes as well as when it's un-collapsed. --- common/content/commandline.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/content/commandline.js b/common/content/commandline.js index 51a9c8a9..5af44809 100644 --- a/common/content/commandline.js +++ b/common/content/commandline.js @@ -40,6 +40,8 @@ const CommandWidgets = Class("CommandWidgets", { onChange: function (elem) { elem.selectionStart = elem.value.length; elem.selectionEnd = elem.value.length; + if (!elem.collapsed) + elem.focus(); }, onVisibility: function (elem, visible) visible && elem.focus() });