mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-10 17:24:29 +00:00
use proper key for disconguous selection on Mac (r=jfrancis)
This commit is contained in:
parent
9ac005b428
commit
04d15b9381
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user