mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-16 22:04:36 +00:00
Bug 510323 Multiline <select> doesn't ignore middle clicks correctly r=smaug
This commit is contained in:
parent
0d52b3144e
commit
157c6529e0
@ -2144,8 +2144,6 @@ nsListControlFrame::MouseDown(nsIDOMEvent* aMouseEvent)
|
||||
|
||||
UpdateInListState(aMouseEvent);
|
||||
|
||||
mButtonDown = PR_TRUE;
|
||||
|
||||
if (mContent->HasAttr(kNameSpaceID_None, nsGkAtoms::disabled)) {
|
||||
return NS_OK;
|
||||
}
|
||||
@ -2170,6 +2168,7 @@ nsListControlFrame::MouseDown(nsIDOMEvent* aMouseEvent)
|
||||
PRInt32 selectedIndex;
|
||||
if (NS_SUCCEEDED(GetIndexFromDOMEvent(aMouseEvent, selectedIndex))) {
|
||||
// Handle Like List
|
||||
mButtonDown = PR_TRUE;
|
||||
CaptureMouseEvents(PR_TRUE);
|
||||
mChangesSinceDragStart = HandleListSelection(aMouseEvent, selectedIndex);
|
||||
#ifdef ACCESSIBILITY
|
||||
|
Loading…
x
Reference in New Issue
Block a user