From: Stas Vilchik Date: Fri, 21 Nov 2014 13:54:04 +0000 (+0100) Subject: SONAR-5718 Fix comment shortcut X-Git-Tag: 5.0-RC1~265 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a0d8686b208cda69318ad130ee4f1bcce34a363e;p=sonarqube.git SONAR-5718 Fix comment shortcut --- 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 @@
  • m    to assign to the current user
  • p    to plan
  • i    to change severity
  • +
  • o    to comment