hook up keyb shortcuts for roomdir

pull/21833/head
Matthew Hodgson 2017-04-23 01:00:44 +01:00
parent fa033e6116
commit 7854cac61d
1 changed files with 4 additions and 0 deletions

View File

@ -156,6 +156,9 @@ export default React.createClass({
if (this.refs.roomView) {
this.refs.roomView.handleScrollKey(ev);
}
else if (this.refs.roomDirectory) {
this.refs.roomDirectory.handleScrollKey(ev);
}
},
render: function() {
@ -216,6 +219,7 @@ export default React.createClass({
case PageTypes.RoomDirectory:
page_element = <RoomDirectory
ref="roomDirectory"
collapsedRhs={this.props.collapse_rhs}
config={this.props.config.roomDirectory}
/>;