Add support for delete key

This commit is contained in:
Clement Ho 2016-12-12 16:27:10 -06:00
parent 6eafd74849
commit d8b8b9c88d
1 changed files with 3 additions and 1 deletions

View File

@ -125,7 +125,9 @@
}
checkForBackspace(e) {
if (e.keyCode === 8) {
// 8 = Backspace Key
// 46 = Delete Key
if (e.keyCode === 8 || e.keyCode === 46) {
// Reposition dropdown so that it is aligned with cursor
this.dropdownManager.updateCurrentDropdownOffset();
}