From 1771c3ba6140fbed6862fdc50a1982d9b9510910 Mon Sep 17 00:00:00 2001 From: Igor Vaynberg Date: Thu, 19 Jul 2012 11:13:02 +0300 Subject: [PATCH] fix bug where space was ignored in single selects. fixes #233 --- select2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/select2.js b/select2.js index 0ca4ef60..0fe30dbc 100755 --- a/select2.js +++ b/select2.js @@ -1215,7 +1215,7 @@ this.search.bind("keydown", this.bind(function (e) { if (!this.enabled) return; - if (e.which === KEY.PAGE_UP || e.which === KEY.PAGE_DOWN || e.which === KEY.SPACE) { + if (e.which === KEY.PAGE_UP || e.which === KEY.PAGE_DOWN) { // prevent the page from scrolling killEvent(e); return;