[Glitch] Do not override ctrl/cmd+click in media gallery

remotes/1727458204337373841/tmp_refs/heads/signup-info-prompt
Thibaut Girka 2018-09-03 20:22:13 +02:00 committed by ThibG
parent 40d04a3209
commit 8183d2ed55
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ class Item extends React.PureComponent {
handleClick = (e) => { handleClick = (e) => {
const { index, onClick } = this.props; const { index, onClick } = this.props;
if (e.button === 0) { if (e.button === 0 && !(e.ctrlKey || e.metaKey)) {
e.preventDefault(); e.preventDefault();
onClick(index); onClick(index);
} }