From 08b8cacdb028375171d56835eb2d0bdd0a70affd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Wed, 18 Jun 2014 22:52:31 +0200 Subject: [PATCH] BUGFIX: ctrl+click on logo doesn't open site in new tab --- app/assets/javascripts/discourse/components/home-logo.js.es6 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/assets/javascripts/discourse/components/home-logo.js.es6 b/app/assets/javascripts/discourse/components/home-logo.js.es6 index 9d8e6884330..55ed13b0c3b 100644 --- a/app/assets/javascripts/discourse/components/home-logo.js.es6 +++ b/app/assets/javascripts/discourse/components/home-logo.js.es6 @@ -14,6 +14,9 @@ export default Ember.Component.extend({ title: Discourse.computed.setting('title'), click: function(e) { + // if they want to open in a new tab, let it so + if (e.shiftKey || e.metaKey || e.ctrlKey || e.which === 2) { return true; } + e.preventDefault(); // When you click the logo, never use a cached list