Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.

Commit 735c947

Browse files
committed
Merge pull request #4 from tomgutz/fix/blank_after_selection
fix(keystroke): Added delete keystroke together with backspace
2 parents 285f621 + 93e3efd commit 735c947

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

angucomplete-alt.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ angular.module('angucomplete-alt', [] ).directive('angucompleteAlt', ['$parse',
1616
KEY_ES = 27,
1717
KEY_EN = 13,
1818
KEY_BS = 8,
19+
KEY_DEL = 46,
1920
MIN_LENGTH = 3,
2021
PAUSE = 500;
2122

@@ -301,7 +302,7 @@ angular.module('angucomplete-alt', [] ).directive('angucompleteAlt', ['$parse',
301302
scope.results = [];
302303
scope.showDropdown = false;
303304
scope.$apply();
304-
} else if (event.which === KEY_BS) {
305+
} else if (event.which === KEY_BS || event.which === KEY_DEL) {
305306
scope.selectedObject = null;
306307
scope.$apply();
307308
}

0 commit comments

Comments
 (0)