Commit d8b8b9c8 authored by Clement Ho's avatar Clement Ho

Add support for delete key

parent 6eafd748
...@@ -125,7 +125,9 @@ ...@@ -125,7 +125,9 @@
} }
checkForBackspace(e) { 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 // Reposition dropdown so that it is aligned with cursor
this.dropdownManager.updateCurrentDropdownOffset(); this.dropdownManager.updateCurrentDropdownOffset();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment