forked from matrix/element-web
escape key to cancel search box
This commit is contained in:
parent
f2fb1836df
commit
3fb0c9883b
|
@ -42,6 +42,9 @@ module.exports = React.createClass({
|
|||
if (e.keyCode === 13) { // on enter...
|
||||
this.onSearch();
|
||||
}
|
||||
if (e.keyCode === 27) { // escape...
|
||||
this.props.onCancelClick();
|
||||
}
|
||||
},
|
||||
|
||||
onSearch: function() {
|
||||
|
|
Loading…
Reference in New Issue