diff options
author | Kris Maglione <maglione.k@gmail.com> | 2011-01-24 06:42:54 -0500 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2011-01-24 06:42:54 -0500 |
commit | b86f39ac724322a253fc1463007ca5a5c5a2c629 (patch) | |
tree | 58c59bc4e2e39af563409729ea98c1bee17ec47f /common | |
parent | 26b350def5156b6b987c2d129172efab17b7ff3d (diff) | |
download | pentadactyl-b86f39ac724322a253fc1463007ca5a5c5a2c629.tar.gz |
Fix urlbar focus bug when urlbar is in the menu bar.
--HG--
extra : transplant_source : 9%25k%AB%AD%81%D6%3C%DD%9E%AD%3E%99%8E%89%DD%5C%95%F4%0D
Diffstat (limited to 'common')
-rw-r--r-- | common/content/events.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/content/events.js b/common/content/events.js index bdab4bcd..582e09cb 100644 --- a/common/content/events.js +++ b/common/content/events.js @@ -742,7 +742,8 @@ var Events = Module("events", { if (event.target instanceof Ci.nsIDOMXULTextBoxElement) for (let e = elem; e instanceof Element; e = e.parentNode) - if (util.computedStyle(e).visibility !== "visible") { + if (util.computedStyle(e).visibility !== "visible" || + e.boxObject && e.boxObject.height === 0) { elem.blur(); break; } |