]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5718 Fix comment shortcut
authorStas Vilchik <vilchiks@gmail.com>
Fri, 21 Nov 2014 13:54:04 +0000 (14:54 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Fri, 21 Nov 2014 14:15:52 +0000 (15:15 +0100)
server/sonar-web/src/main/coffee/issues/app.coffee
server/sonar-web/src/main/hbs/issues/issues-help.hbs

index f14e8e67f36743485325ed5b11fab4fd0aae2a41..9ae6f8b3604685dc6d52a04522fedc5176c8072d 100644 (file)
@@ -110,10 +110,12 @@ requirejs [
 
   App.addInitializer ->
     $(window).on 'keypress', (e) =>
-      code = e.keyCode || e.which
-      if code == 63
-        @helpView = new HelpView app: @
-        @helpView.render()
+      tagName = e.target.tagName
+      unless tagName == 'INPUT' || tagName == 'SELECT' || tagName == 'TEXTAREA'
+        code = e.keyCode || e.which
+        if code == 63
+          @helpView = new HelpView app: @
+          @helpView.render()
 
 
   App.addInitializer ->
index 9d52dfa77e6c605a773dd52e660f07402db6a633..4745f8882b475c421f63b64d3bff7e776ec286ec 100644 (file)
@@ -19,6 +19,7 @@
     <li><span class="shortcut-button">m</span> &nbsp;&nbsp; to assign to the current user</li>
     <li><span class="shortcut-button">p</span> &nbsp;&nbsp; to plan</li>
     <li><span class="shortcut-button">i</span> &nbsp;&nbsp; to change severity</li>
+    <li><span class="shortcut-button">o</span> &nbsp;&nbsp; to comment</li>
   </ul>
 </div>