From 7c1ceb8fd9d19d072585a44c5d07c4d480f1ac54 Mon Sep 17 00:00:00 2001 From: Vasily Kazantsev Date: Sun, 22 Jun 2014 19:07:36 +0300 Subject: [PATCH] filter 229 keyCodes (input method editor is processing key input) --- select2.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/select2.js b/select2.js index 7a425e8ed8..445f93a4b7 100644 --- a/select2.js +++ b/select2.js @@ -2101,6 +2101,9 @@ the specific language governing permissions and limitations under the Apache Lic this.search.on("keydown", this.bind(function (e) { if (!this.isInterfaceEnabled()) return; + // filter 229 keyCodes (input method editor is processing key input) + if (229 == e.keyCode) return; + if (e.which === KEY.PAGE_UP || e.which === KEY.PAGE_DOWN) { // prevent the page from scrolling killEvent(e);