Skip to content

Commit fa90897

Browse files
committed
Merge pull request select2#610 from MaxxSoftware/master
Firefox Tab and Enter keys issue.
2 parents fcea152 + 327e00b commit fa90897

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

select2.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1607,6 +1607,9 @@ the specific language governing permissions and limitations under the Apache Lic
16071607
}
16081608
}));
16091609
selection.bind("keypress", this.bind(function(e) {
1610+
if (e.which == KEY.DELETE || e.which == KEY.BACKSPACE || e.which == KEY.TAB || e.which == KEY.ENTER || e.which == 0) {
1611+
return
1612+
}
16101613
var key = String.fromCharCode(e.which);
16111614
this.search.val(key);
16121615
this.open();

0 commit comments

Comments
 (0)