We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 09d3172 + d92daf3 commit 6dc3859Copy full SHA for 6dc3859
src/select.js
@@ -373,6 +373,14 @@
373
});
374
focusser.bind("keydown", function(e){
375
376
+ if (e.which === KEY.BACKSPACE) {
377
+ e.preventDefault();
378
+ e.stopPropagation();
379
+ $select.select(undefined);
380
+ scope.$digest();
381
+ return;
382
+ }
383
+
384
if (e.which === KEY.TAB || KEY.isControl(e) || KEY.isFunctionKey(e) || e.which === KEY.ESC) {
385
return;
386
}
@@ -388,7 +396,7 @@
388
396
389
397
focusser.bind("keyup input", function(e){
390
398
391
- if (e.which === KEY.TAB || KEY.isControl(e) || KEY.isFunctionKey(e) || e.which === KEY.ESC || e.which == KEY.ENTER) {
399
+ if (e.which === KEY.TAB || KEY.isControl(e) || KEY.isFunctionKey(e) || e.which === KEY.ESC || e.which == KEY.ENTER || e.which === KEY.BACKSPACE) {
392
400
393
401
394
402
0 commit comments