From: Stas Vilchik Date: Thu, 3 Apr 2014 09:03:46 +0000 (+0600) Subject: SONAR-5166 Offer shortcut to access the top-right search engine X-Git-Tag: 4.3~167 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=343579fe3be29acc2445761699390a1dba24cd78;p=sonarqube.git SONAR-5166 Offer shortcut to access the top-right search engine Fix use of / --- diff --git a/sonar-server/src/main/js/application.js b/sonar-server/src/main/js/application.js index 6070f9643b9..cd226028d87 100644 --- a/sonar-server/src/main/js/application.js +++ b/sonar-server/src/main/js/application.js @@ -555,7 +555,7 @@ jQuery(function() { // Define global shortcuts - key('/,/', function() { // divide sign, slash + key('slash,divide,shift+slash', function() { // jQuery('#searchInput').focus(); return false; }); diff --git a/sonar-server/src/main/js/third-party/keymaster.js b/sonar-server/src/main/js/third-party/keymaster.js index 8a13e83f313..940b5f2c019 100644 --- a/sonar-server/src/main/js/third-party/keymaster.js +++ b/sonar-server/src/main/js/third-party/keymaster.js @@ -25,6 +25,7 @@ del: 46, 'delete': 46, home: 36, end: 35, pageup: 33, pagedown: 34, + slash: 191, divide: 111, ',': 188, '.': 190, '/': 191, '`': 192, '-': 189, '=': 187, ';': 186, '\'': 222,