1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-30 19:52:25 +01:00

Fix input caret in input elements on initial focus.

This commit is contained in:
Kris Maglione
2011-08-14 16:27:01 -04:00
parent 9273db48ab
commit 8a3c6a7ea3
2 changed files with 5 additions and 0 deletions

View File

@@ -1246,6 +1246,7 @@ var Events = Module("events", {
focus: function onFocus(event) {
let elem = event.originalTarget;
elem.dactylHadFocus = true;
if (event.target instanceof Ci.nsIDOMXULTextBoxElement)
if (Events.isHidden(elem, true))
elem.blur();