Bug 681640 - Send mouse events to form fields when they are focused in Fennec [r=mbrubeck]

This commit is contained in:
Martijn Wargers 2011-08-31 15:55:00 -07:00
Родитель 049f1f1cc4
Коммит ba0943e119
1 изменённых файлов: 4 добавлений и 3 удалений

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

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