diff --git a/www/common/toolbar.js b/www/common/toolbar.js index c1c70a1bb..e082945a6 100644 --- a/www/common/toolbar.js +++ b/www/common/toolbar.js @@ -321,7 +321,17 @@ define([ var $span = $('').text('CryptPad'); var $aTagBig = $aTagSmall.clone().addClass('large').append($span); $aTagSmall.addClass('narrow'); + var onClick = function (e) { + e.preventDefault(); + if (e.ctrlKey) { + window.open('/'); + return; + } + window.location = "/"; + }; + $aTagBig.click(onClick); + $aTagSmall.click(onClick); $linkContainer.append($aTagSmall).append($aTagBig); };