Bug 398143 - Dragging scrollbar with mouse while autocomplete input has focus triggers autocomplete, r=mano, a=mconnor

This commit is contained in:
martijn.martijn@gmail.com 2007-10-02 07:50:51 -07:00
Родитель cdc3077d53
Коммит a034784dfa
1 изменённых файлов: 6 добавлений и 0 удалений

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

@ -791,6 +791,12 @@ nsFormFillController::MouseDown(nsIDOMEvent* aMouseEvent)
if (!mouseEvent)
return NS_ERROR_FAILURE;
nsCOMPtr<nsIDOMEventTarget> target;
aMouseEvent->GetTarget(getter_AddRefs(target));
nsCOMPtr<nsIDOMHTMLInputElement> targetInput = do_QueryInterface(target);
if (!targetInput)
return NS_OK;
PRUint16 button;
mouseEvent->GetButton(&button);
if (button != 0)