mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 849699 - Don't change focus for form manager fields when there is no autocomplete. r=mbrubeck
This commit is contained in:
parent
fba7b2d765
commit
cf8ac29568
@ -438,22 +438,7 @@ let Content = {
|
||||
}
|
||||
|
||||
this.formAssistant.focusSync = true;
|
||||
|
||||
// The form manager handles focus related changes on form elements.
|
||||
// If it returns false, it didn't find anything to act on. If the
|
||||
// target element doesn't match the current focus element, clear
|
||||
// focus. This allows users to remove focus from form elements by
|
||||
// taping on white space content.
|
||||
if (!this.formAssistant.open(element, aEvent)) {
|
||||
if (gFocusManager.focusedElement &&
|
||||
gFocusManager.focusedElement != element) {
|
||||
gFocusManager.focusedElement.blur();
|
||||
}
|
||||
// This may not have any effect if element is unfocusable.
|
||||
gFocusManager.setFocus(element, Ci.nsIFocusManager.FLAG_NOSCROLL);
|
||||
sendAsyncMessage("FindAssist:Hide", { });
|
||||
}
|
||||
|
||||
this.formAssistant.open(element, aEvent);
|
||||
this._cancelTapHighlight();
|
||||
this.formAssistant.focusSync = false;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user