diff --git a/select2.js b/select2.js index 9ffc0282..a15c95cf 100644 --- a/select2.js +++ b/select2.js @@ -1607,6 +1607,9 @@ the specific language governing permissions and limitations under the Apache Lic } })); selection.bind("keypress", this.bind(function(e) { + if (e.which == KEY.DELETE || e.which == KEY.BACKSPACE || e.which == KEY.TAB || e.which == KEY.ENTER || e.which == 0) { + return + } var key = String.fromCharCode(e.which); this.search.val(key); this.open();