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 f0b0f35433
commit 878d1c0617

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)