diff --git a/src/jquery.uls.core.js b/src/jquery.uls.core.js index ff4077a..1bf78e0 100644 --- a/src/jquery.uls.core.js +++ b/src/jquery.uls.core.js @@ -225,7 +225,7 @@ } ); // Handle key press events on the menu - this.$menu.keydown( $.proxy( this.keypress, this ) ); + this.$menu.on( 'keydown', $.proxy( this.keypress, this ) ); languagesCount = Object.keys( this.options.languages ).length; lcd = this.$resultsView.lcd( { diff --git a/src/jquery.uls.languagefilter.js b/src/jquery.uls.languagefilter.js index 8691240..cb72b3e 100644 --- a/src/jquery.uls.languagefilter.js +++ b/src/jquery.uls.languagefilter.js @@ -69,7 +69,7 @@ listen: function () { - this.$element.keydown( $.proxy( this.keypress, this ) ); + this.$element.on( 'keydown', $.proxy( this.keypress, this ) ); if ( this.$clear.length ) { this.$clear.on( 'click', $.proxy( this.clear, this ) );