Skip to content

Commit

Permalink
filter 229 keyCodes (input method editor is processing key input)
Browse files Browse the repository at this point in the history
  • Loading branch information
hitosu committed Jun 22, 2014
1 parent fdad112 commit 7c1ceb8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions select2.js
Expand Up @@ -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);
Expand Down

0 comments on commit 7c1ceb8

Please sign in to comment.