From: Stas Vilchik Date: Mon, 17 Feb 2014 05:56:43 +0000 (+0600) Subject: Top Search: ignore some functional keys X-Git-Tag: 4.2~114 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1a69a160f2b2e56c0030f2c12db4ecb16ef883ac;p=sonarqube.git Top Search: ignore some functional keys --- 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: