From 92224001154a0cced211712df7b582e1a13d9307 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Lievremont Date: Wed, 11 Jun 2014 15:11:08 +0200 Subject: [PATCH] SONAR-5136 Add "escape" key to close extended description, enable tab support --- .../coffee/coding-rules/views/coding-rules-detail-view.coffee | 4 ++++ 1 file changed, 4 insertions(+) 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() -- 2.39.5