diff --git a/src/skins/vector/views/molecules/SearchBar.js b/src/skins/vector/views/molecules/SearchBar.js index aa72ee8da..da1dfb6b6 100644 --- a/src/skins/vector/views/molecules/SearchBar.js +++ b/src/skins/vector/views/molecules/SearchBar.js @@ -43,13 +43,15 @@ module.exports = React.createClass({ }, onSearchChange: function(e) { - + if (e.keyCode === 13) { + this.props.onSearch(this.refs.search_term.getDOMNode().value); + } }, - + render: function() { return (
- +
This Room
All Rooms