Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-01-20 14:19:15 +0300
committerPhil Hughes <me@iamphill.com>2017-01-23 12:19:04 +0300
commit14cd8f08eca7f63196248302f71f1a351ca85957 (patch)
tree6e8bb747cb14a1a78ce2892a27bf4d4714e0eb00 /app/assets/javascripts/droplab
parent8a6e415268c60074b8cd9508c106120107ce5731 (diff)
Fixed keyboard navigation not working in filtered search bar
Diffstat (limited to 'app/assets/javascripts/droplab')
-rw-r--r--app/assets/javascripts/droplab/droplab_filter.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/assets/javascripts/droplab/droplab_filter.js b/app/assets/javascripts/droplab/droplab_filter.js
index 41a220831f9..9eb7893fe95 100644
--- a/app/assets/javascripts/droplab/droplab_filter.js
+++ b/app/assets/javascripts/droplab/droplab_filter.js
@@ -3,6 +3,7 @@
/* global droplab */
require('../window')(function(w){
+ var whiteListedKeys = [37, 38, 39, 40];
w.droplabFilter = {
keydownWrapper: function(e){
@@ -17,6 +18,10 @@ require('../window')(function(w){
return;
}
+ if (whiteListedKeys.indexOf(e.detail.which) !== -1) {
+ return;
+ }
+
if (config && config.filterFunction && typeof config.filterFunction === 'function') {
filterFunction = config.filterFunction;
} else {
@@ -57,4 +62,4 @@ module.exports = function(callback) {
};
},{}]},{},[1])(1)
-}); \ No newline at end of file
+});