aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2014-06-11 15:11:08 +0200
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>2014-06-11 15:11:08 +0200
commit92224001154a0cced211712df7b582e1a13d9307 (patch)
tree723e60e02f7ad6108d8c87f622ad9ec88ebbf412
parentfde34408af14fb5c2cf23adf59ca7eef8ca729b5 (diff)
downloadsonarqube-92224001154a0cced211712df7b582e1a13d9307.tar.gz
sonarqube-92224001154a0cced211712df7b582e1a13d9307.zip
SONAR-5136 Add "escape" key to close extended description, enable tab support
-rw-r--r--sonar-server/src/main/coffee/coding-rules/views/coding-rules-detail-view.coffee4
1 files changed, 4 insertions, 0 deletions
diff --git a/sonar-server/src/main/coffee/coding-rules/views/coding-rules-detail-view.coffee b/sonar-server/src/main/coffee/coding-rules/views/coding-rules-detail-view.coffee
index d516674bdc8..010bf60bd5f 100644
--- a/sonar-server/src/main/coffee/coding-rules/views/coding-rules-detail-view.coffee
+++ b/sonar-server/src/main/coffee/coding-rules/views/coding-rules-detail-view.coffee
@@ -165,9 +165,13 @@ define [
showExtendDescriptionForm: ->
@ui.descriptionExtra.hide()
@ui.extendDescriptionForm.show()
+ key.setScope 'extraDesc'
+ key 'escape', 'extraDesc', => @hideExtendDescriptionForm()
+ @ui.extendDescriptionText.focus()
hideExtendDescriptionForm: ->
+ key.unbind 'escape', 'extraDesc'
@ui.descriptionExtra.show()
@ui.extendDescriptionForm.hide()