diff --git a/src/torrent.js b/src/torrent.js index d74eb18..cf6f217 100644 --- a/src/torrent.js +++ b/src/torrent.js @@ -156,7 +156,19 @@ const torrent = props.torrent; return (
window.router('/torrent/' + torrent.hash)} + onClick={(e) => { + const link = '/torrent/' + torrent.hash; + if(e.button === 1) + return false; + + if(e.ctrlKey && e.button === 0) { + let win = window.open(link, '_blank'); + //win.focus(); + return true; + } + + window.router(link) + }} primaryText={ { if(node)