mirror of https://github.com/vector-im/riot-web
escape key to cancel search box
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