1
0
mirror of synced 2025-02-04 06:09:23 +03: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;
}