allow clearing on backspace as well as delete. fixes #396
This commit is contained in:
parent
6690cc449c
commit
ab7ab5b3f7
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user