Add canResetTimeline callback and thread it through to TimelinePanel

This commit is contained in:
Kegan Dougal 2017-03-22 15:06:52 +00:00
parent 544a6593e1
commit 4cebded04f
4 changed files with 41 additions and 1 deletions

View file

@ -81,6 +81,13 @@ export default React.createClass({
return this._scrollStateMap[roomId];
},
canResetTimelineInRoom: function(roomId) {
if (!this.refs.roomView) {
return true;
}
return this.refs.roomView.canResetTimeline();
},
_onKeyDown: function(ev) {
/*
// Remove this for now as ctrl+alt = alt-gr so this breaks keyboards which rely on alt-gr for numbers