]> source.dussan.org Git - sonarqube.git/commitdiff
Top Search: ignore some functional keys
authorStas Vilchik <vilchiks@gmail.com>
Mon, 17 Feb 2014 05:56:43 +0000 (11:56 +0600)
committerStas Vilchik <vilchiks@gmail.com>
Mon, 17 Feb 2014 05:56:43 +0000 (11:56 +0600)
sonar-server/src/main/webapp/javascripts/top-search.js

index ee7c3b5f4ce81b392b41a473741f232658e53599..d3e98dd72858b8b9f2258f4fa7ae44b7d8e3474e 100644 (file)
             symbol = false;
           }
 
+          console.log(e.keyCode);
+
           switch (e.keyCode) {
             case 13: // return
               prevent(e);
               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: