diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2014-11-21 14:54:04 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2014-11-21 15:15:52 +0100 |
commit | a0d8686b208cda69318ad130ee4f1bcce34a363e (patch) | |
tree | a09fc710116f5c8740c3709cb5cba6d76d6253ef | |
parent | c36f2e731414c844661c7d39d4958f05e4b1d1c0 (diff) | |
download | sonarqube-a0d8686b208cda69318ad130ee4f1bcce34a363e.tar.gz sonarqube-a0d8686b208cda69318ad130ee4f1bcce34a363e.zip |
SONAR-5718 Fix comment shortcut
-rw-r--r-- | server/sonar-web/src/main/coffee/issues/app.coffee | 10 | ||||
-rw-r--r-- | server/sonar-web/src/main/hbs/issues/issues-help.hbs | 1 |
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> to assign to the current user</li> <li><span class="shortcut-button">p</span> to plan</li> <li><span class="shortcut-button">i</span> to change severity</li> + <li><span class="shortcut-button">o</span> to comment</li> </ul> </div> |