This website works better with JavaScript.
Home
Explore
Help
Sign In
closed-social
/
mastodon
Watch
3
Star
0
Fork
2
Code
Issues
5
Pull Requests
0
Projects
0
Releases
3
Wiki
Activity
Browse Source
[Glitch] Do not override ctrl/cmd+click in media gallery
closed-social-glitch-2
Thibaut Girka
6 years ago
committed by
ThibG
parent
40d04a3209
commit
8183d2ed55
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
app/javascript/flavours/glitch/components/media_gallery.js
+ 1
- 1
app/javascript/flavours/glitch/components/media_gallery.js
View File
@ -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
)
;
}
Write
Preview
Loading…
Cancel
Save