Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

allow clearing on backspace as well as delete. fixes #396

  • Loading branch information...
commit ab7ab5b3f7fb9985b11ad8af20738ac3466426b8 1 parent 6690cc4
@ivaynberg ivaynberg authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  select2.js
View
3  select2.js
@@ -1543,10 +1543,11 @@
return;
}
- if (e.which == KEY.DELETE) {
+ if (e.which == KEY.DELETE || e.which == KEY.BACKSPACE) {
if (this.opts.allowClear) {
this.clear();
}
+ killEvent(e);
return;
}
Please sign in to comment.
Something went wrong with that request. Please try again.