Zebediah Figura : Don't open a donav if ctrl-clicked

Jeremy Newman jnewman at winehq.org
Fri Aug 11 08:29:44 CDT 2017


Module: appdb
Branch: master
Commit: 4bc543661715c3824cd84390ff26e5cdfd73bc3c
URL:    http://source.winehq.org/git/appdb.git/?a=commit;h=4bc543661715c3824cd84390ff26e5cdfd73bc3c

Author: Zebediah Figura <zfigura at codeweavers.com>
Date:   Thu Aug 10 16:03:48 2017 -0500

Don't open a donav if ctrl-clicked

Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
Signed-off-by: Jeremy Newman <jnewman at codeweavers.com>

---

 js/utils.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/js/utils.js b/js/utils.js
index 33befa8..26128a9 100644
--- a/js/utils.js
+++ b/js/utils.js
@@ -166,7 +166,9 @@ $(document).ready(function()
         $(this).addClass('cursor-pointer');
         $(this).click(function(e)
         {
-            document.location = sURL;
+            if (!e.ctrlKey) {
+                document.location = sURL;
+            }
         });
     });
 




More information about the wine-cvs mailing list