From 57a6e396695b3d2dad8bc32753312c1c3b61a469 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Fri, 25 Apr 2014 19:42:38 -0700 Subject: [PATCH] Fixed: new series searching is less restrictive --- src/UI/AddSeries/AddSeriesView.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/UI/AddSeries/AddSeriesView.js b/src/UI/AddSeries/AddSeriesView.js index 7ac62beb4..199c823de 100644 --- a/src/UI/AddSeries/AddSeriesView.js +++ b/src/UI/AddSeries/AddSeriesView.js @@ -57,7 +57,13 @@ define( this.$el.addClass(this.className); - this.ui.seriesSearch.keypress(function () { + this.ui.seriesSearch.keyup(function (e) { + + //Ignore special keys: http://www.javascripter.net/faq/keycodes.htm + if (_.contains([9, 16, 17, 18, 19, 20, 33, 34, 35, 36, 37, 38, 39, 40, 91, 92, 93 ], e.keyCode)) { + return; + } + self.searchResult.close(); self._abortExistingSearch(); self.throttledSearch({