From 343579fe3be29acc2445761699390a1dba24cd78 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Thu, 3 Apr 2014 15:03:46 +0600 Subject: [PATCH] SONAR-5166 Offer shortcut to access the top-right search engine Fix use of / --- sonar-server/src/main/js/application.js | 2 +- sonar-server/src/main/js/third-party/keymaster.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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, -- 2.39.5