From a0d8686b208cda69318ad130ee4f1bcce34a363e Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Fri, 21 Nov 2014 14:54:04 +0100 Subject: [PATCH] SONAR-5718 Fix comment shortcut --- server/sonar-web/src/main/coffee/issues/app.coffee | 10 ++++++---- 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 @@
  • m    to assign to the current user
  • p    to plan
  • i    to change severity
  • +
  • o    to comment
  • -- 2.39.5