Bug 681640 - Tapping on a form field in Fennec should position the caret at the location of the tap [r=mfinkle]

This commit is contained in:
Matt Brubeck 2011-09-04 08:06:07 -07:00
Родитель 2c2b76690f
Коммит d211b5703d
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -495,8 +495,13 @@ let Content = {
if (uri)
sendAsyncMessage("Browser:OpenURI", { uri: uri,
referrer: element.ownerDocument.documentURIObject.spec });
} else if (!this._formAssistant.open(element) && this._highlightElement) {
break;
}
if (!this._formAssistant.open(element))
sendAsyncMessage("FindAssist:Hide", { });
if (this._highlightElement) {
this._sendMouseEvent("mousemove", this._highlightElement, x, y);
this._sendMouseEvent("mousedown", this._highlightElement, x, y);
this._sendMouseEvent("mouseup", this._highlightElement, x, y);