aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server/src/main/js/application.js
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2014-04-01 18:29:13 +0600
committerStas Vilchik <vilchiks@gmail.com>2014-04-01 18:29:13 +0600
commit4815f910fb11c2ad236601a1c29a2be5cfb0985f (patch)
tree121d354d42dfb14cb289941eef53f58539194393 /sonar-server/src/main/js/application.js
parenteb4f29a496c1eaf4a2fb9f2023c163aff43a6ce8 (diff)
downloadsonarqube-4815f910fb11c2ad236601a1c29a2be5cfb0985f.tar.gz
sonarqube-4815f910fb11c2ad236601a1c29a2be5cfb0985f.zip
SONAR-5166 Offer shortcut to access the top-right search engine
Diffstat (limited to 'sonar-server/src/main/js/application.js')
-rw-r--r--sonar-server/src/main/js/application.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/sonar-server/src/main/js/application.js b/sonar-server/src/main/js/application.js
index 03704b38cda..04e4d7e245e 100644
--- a/sonar-server/src/main/js/application.js
+++ b/sonar-server/src/main/js/application.js
@@ -552,5 +552,12 @@ jQuery(function() {
}
window.location = href;
});
+
+
+ // Define global shortcuts
+ key('/', function() {
+ jQuery('#searchInput').focus();
+ return false;
+ });
});