Made backspace work on input history items

This commit is contained in:
khlieng 2015-02-12 02:14:56 +01:00
parent 8a790a6fe2
commit b7cafc5327
4 changed files with 9 additions and 5 deletions

View file

@ -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();
}