1
0
Fork 0
mirror of synced 2025-04-09 12:02:02 +00:00

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

This commit is contained in:
Igor Vaynberg 2012-09-13 00:09:17 -07:00
parent 6690cc449c
commit ab7ab5b3f7

View file

@ -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;
}