mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-08 17:16:25 +01:00
Skip if meta/ctrl/shift/alt/middle-click
This commit is contained in:
parent
7119a78711
commit
616b9fcf02
1 changed files with 9 additions and 0 deletions
|
@ -1091,6 +1091,15 @@ function Status({
|
||||||
<Link
|
<Link
|
||||||
to={instance ? `/${instance}/s/${id}` : `/s/${id}`}
|
to={instance ? `/${instance}/s/${id}` : `/s/${id}`}
|
||||||
onClick={(e) => {
|
onClick={(e) => {
|
||||||
|
if (
|
||||||
|
e.metaKey ||
|
||||||
|
e.ctrlKey ||
|
||||||
|
e.shiftKey ||
|
||||||
|
e.altKey ||
|
||||||
|
e.which === 2
|
||||||
|
) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
onStatusLinkClick?.(e, status);
|
onStatusLinkClick?.(e, status);
|
||||||
|
|
Loading…
Reference in a new issue