aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2014-11-21 14:54:04 +0100
committerStas Vilchik <vilchiks@gmail.com>2014-11-21 15:15:52 +0100
commita0d8686b208cda69318ad130ee4f1bcce34a363e (patch)
treea09fc710116f5c8740c3709cb5cba6d76d6253ef
parentc36f2e731414c844661c7d39d4958f05e4b1d1c0 (diff)
downloadsonarqube-a0d8686b208cda69318ad130ee4f1bcce34a363e.tar.gz
sonarqube-a0d8686b208cda69318ad130ee4f1bcce34a363e.zip
SONAR-5718 Fix comment shortcut
-rw-r--r--server/sonar-web/src/main/coffee/issues/app.coffee10
-rw-r--r--server/sonar-web/src/main/hbs/issues/issues-help.hbs1
2 files changed, 7 insertions, 4 deletions
diff --git a/server/sonar-web/src/main/coffee/issues/app.coffee b/server/sonar-web/src/main/coffee/issues/app.coffee
index f14e8e67f36..9ae6f8b3604 100644
--- a/server/sonar-web/src/main/coffee/issues/app.coffee
+++ b/server/sonar-web/src/main/coffee/issues/app.coffee
@@ -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 ->
diff --git a/server/sonar-web/src/main/hbs/issues/issues-help.hbs b/server/sonar-web/src/main/hbs/issues/issues-help.hbs
index 9d52dfa77e6..4745f8882b4 100644
--- a/server/sonar-web/src/main/hbs/issues/issues-help.hbs
+++ b/server/sonar-web/src/main/hbs/issues/issues-help.hbs
@@ -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>