aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2014-12-05 14:52:31 +0100
committerStas Vilchik <vilchiks@gmail.com>2014-12-05 14:52:31 +0100
commit89777b92d44c40baa7f7c084a5ccbdeb32438eba (patch)
treef196e03f11df459a18800815afe9c4b7f752806b /server
parente1d09655f4e0f46f1418df12026ef0439cff03b9 (diff)
downloadsonarqube-89777b92d44c40baa7f7c084a5ccbdeb32438eba.tar.gz
sonarqube-89777b92d44c40baa7f7c084a5ccbdeb32438eba.zip
SONAR-5877 Close popup by esc
Diffstat (limited to 'server')
-rw-r--r--server/sonar-web/src/main/coffee/common/popup.coffee2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/coffee/common/popup.coffee b/server/sonar-web/src/main/coffee/common/popup.coffee
index 4db14e4d33b..90af92a4a5b 100644
--- a/server/sonar-web/src/main/coffee/common/popup.coffee
+++ b/server/sonar-web/src/main/coffee/common/popup.coffee
@@ -33,6 +33,8 @@ define [
attachCloseEvents: ->
+ key 'escape', => @close()
+
$('body').on 'click.bubble-popup', =>
$('body').off 'click.bubble-popup'
@close()