Made backspace work on input history items
This commit is contained in:
parent
8a790a6fe2
commit
b7cafc5327
4 changed files with 9 additions and 5 deletions
|
@ -48,6 +48,8 @@ var MessageInput = React.createClass({
|
|||
inputHistoryActions.increment();
|
||||
} else if (e.which === 40) {
|
||||
inputHistoryActions.decrement();
|
||||
} else if (e.key === 'Backspace' || e.key === 'Delete') {
|
||||
inputHistoryActions.reset();
|
||||
} else if (e.key === 'Unidentified') {
|
||||
inputHistoryActions.reset();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue