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

master
Thibaut Girka 6 years ago committed by ThibG
parent 40d04a3209
commit 8183d2ed55
  1. 2
      app/javascript/flavours/glitch/components/media_gallery.js

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

Loading…
Cancel
Save