diff --git a/src/scaladoc/scala/tools/nsc/doc/html/resource/lib/template.js b/src/scaladoc/scala/tools/nsc/doc/html/resource/lib/template.js
index <HASH>..<HASH> 100644
--- a/src/scaladoc/scala/tools/nsc/doc/html/resource/lib/template.js
+++ b/src/scaladoc/scala/tools/nsc/doc/html/resource/lib/template.js
@@ -259,7 +259,8 @@ $(document).ready(function() {
     };
 
     $("#template li[fullComment=yes]").click(function() {
-        commentToggleFct($(this));
+        var sel = window.getSelection().toString();
+        if (!sel) commentToggleFct($(this));
     });
 
     /* Linear super types and known subclasses */
Toggle comment if no text is selected

fixes scala/scala-lang/issues/<I>