From 1a69a160f2b2e56c0030f2c12db4ecb16ef883ac Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Mon, 17 Feb 2014 11:56:43 +0600 Subject: [PATCH] Top Search: ignore some functional keys --- sonar-server/src/main/webapp/javascripts/top-search.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sonar-server/src/main/webapp/javascripts/top-search.js b/sonar-server/src/main/webapp/javascripts/top-search.js index ee7c3b5f4ce..d3e98dd7285 100644 --- a/sonar-server/src/main/webapp/javascripts/top-search.js +++ b/sonar-server/src/main/webapp/javascripts/top-search.js @@ -137,6 +137,8 @@ symbol = false; } + console.log(e.keyCode); + switch (e.keyCode) { case 13: // return prevent(e); @@ -152,6 +154,12 @@ return; case 37: // left case 39: // right + case 16: // shift + case 17: // ctrl + case 18: // alt + case 91: // cmd + case 20: // caps + case 27: // esc symbol = false; return; default: -- 2.39.5