From cdc7a2ec6f9b3265f36bf4d80514d48e86fbde30 Mon Sep 17 00:00:00 2001 From: Alexey Kasyanchuk Date: Sat, 4 Feb 2017 12:31:18 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=BE=20=D0=BE=D1=82=D0=BA=D1=80=D1=8B=D1=82=D0=B8?= =?UTF-8?q?=D0=B5=20=D1=82=D0=B0=D0=B1=D0=BE=D0=B2=20=D0=B2=20=D1=84=D0=BE?= =?UTF-8?q?=D0=BA=D1=81=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/torrent.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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)