1
0
Fork 0

Skip if meta/ctrl/shift/alt/middle-click

This commit is contained in:
Lim Chee Aun 2023-11-01 21:56:06 +08:00
parent 7119a78711
commit 616b9fcf02

View file

@ -1091,6 +1091,15 @@ function Status({
<Link
to={instance ? `/${instance}/s/${id}` : `/s/${id}`}
onClick={(e) => {
if (
e.metaKey ||
e.ctrlKey ||
e.shiftKey ||
e.altKey ||
e.which === 2
) {
return;
}
e.preventDefault();
e.stopPropagation();
onStatusLinkClick?.(e, status);