Check metaKey and ctrlKey presence for multi platform support

Fixes #388
This commit is contained in:
Greg Bowler 2016-01-27 14:18:44 +00:00 committed by Evan Morikawa
parent 6620779ee2
commit 4b68f47040

View file

@ -122,7 +122,7 @@ class MultiselectList extends React.Component
_onClickItem: (item, event) =>
return unless @state.handler
if event.metaKey
if event.metaKey || event.ctrlKey
@state.handler.onMetaClick(item)
else if event.shiftKey
@state.handler.onShiftClick(item)