use proper key for disconguous selection on Mac (r=jfrancis)
git-svn-id: svn://10.0.0.236/trunk@57679 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -930,7 +930,11 @@ nsListControlFrame::HandleListSelection(nsIDOMEvent* aEvent)
|
||||
nsCOMPtr<nsIDOMMouseEvent> mouseEvent = do_QueryInterface(aEvent);
|
||||
PRBool isShift;
|
||||
PRBool isControl;
|
||||
#ifdef XP_MAC
|
||||
mouseEvent->GetMetaKey(&isControl);
|
||||
#else
|
||||
mouseEvent->GetCtrlKey(&isControl);
|
||||
#endif
|
||||
mouseEvent->GetShiftKey(&isShift);
|
||||
MultipleSelection(isShift, isControl);
|
||||
} else {
|
||||
|
||||
@@ -930,7 +930,11 @@ nsListControlFrame::HandleListSelection(nsIDOMEvent* aEvent)
|
||||
nsCOMPtr<nsIDOMMouseEvent> mouseEvent = do_QueryInterface(aEvent);
|
||||
PRBool isShift;
|
||||
PRBool isControl;
|
||||
#ifdef XP_MAC
|
||||
mouseEvent->GetMetaKey(&isControl);
|
||||
#else
|
||||
mouseEvent->GetCtrlKey(&isControl);
|
||||
#endif
|
||||
mouseEvent->GetShiftKey(&isShift);
|
||||
MultipleSelection(isShift, isControl);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user