diff options
author | Thibaut Girka <thib@sitedethib.com> | 2018-09-03 20:22:13 +0200 |
---|---|---|
committer | ThibG <thib@sitedethib.com> | 2018-09-04 13:31:55 +0200 |
commit | 8183d2ed556c37245066789d8d6bb3c6966da670 (patch) | |
tree | ddd366ae2320a3416cddb5d4c200d97dc2d97368 /app/javascript | |
parent | 40d04a3209871b9803b27d01f935ab401bf3539f (diff) |
[Glitch] Do not override ctrl/cmd+click in media gallery
Diffstat (limited to 'app/javascript')
-rw-r--r-- | app/javascript/flavours/glitch/components/media_gallery.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/components/media_gallery.js b/app/javascript/flavours/glitch/components/media_gallery.js index 3faf0b453..a68d983b8 100644 --- a/app/javascript/flavours/glitch/components/media_gallery.js +++ b/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); } |