diff --git a/src/components/views/rooms/RoomList.js b/src/components/views/rooms/RoomList.js
index 64871d1c0f..25e19da770 100644
--- a/src/components/views/rooms/RoomList.js
+++ b/src/components/views/rooms/RoomList.js
@@ -575,10 +575,6 @@ module.exports = React.createClass({
this.refs.gemscroll.forceUpdate();
},
- onRoomTileFocus: function(roomId, event) {
- this.focusedElement = event ? event.target : null;
- },
-
render: function() {
var RoomSubList = sdk.getComponent('structures.RoomSubList');
var self = this;
@@ -595,7 +591,6 @@ module.exports = React.createClass({
collapsed={ self.props.collapsed }
searchFilter={ self.props.searchFilter }
onHeaderClick={ self.onSubListHeaderClick }
- onRoomTileFocus={ self.onRoomTileFocus }
onShowMoreRooms={ self.onShowMoreRooms } />
{ Object.keys(self.state.lists).sort().map(function(tagName) {
@@ -650,7 +642,6 @@ module.exports = React.createClass({
collapsed={ self.props.collapsed }
searchFilter={ self.props.searchFilter }
onHeaderClick={ self.onSubListHeaderClick }
- onRoomTileFocus={ self.onRoomTileFocus }
onShowMoreRooms={ self.onShowMoreRooms } />;
}
@@ -666,7 +657,6 @@ module.exports = React.createClass({
collapsed={ self.props.collapsed }
searchFilter={ self.props.searchFilter }
onHeaderClick={ self.onSubListHeaderClick }
- onRoomTileFocus={ self.onRoomTileFocus }
onShowMoreRooms={ self.onShowMoreRooms } />
diff --git a/src/components/views/rooms/RoomTile.js b/src/components/views/rooms/RoomTile.js
index db997fff3e..f18df52eee 100644
--- a/src/components/views/rooms/RoomTile.js
+++ b/src/components/views/rooms/RoomTile.js
@@ -37,7 +37,6 @@ module.exports = React.createClass({
connectDragSource: React.PropTypes.func,
connectDropTarget: React.PropTypes.func,
onClick: React.PropTypes.func,
- onFocus: React.PropTypes.func,
isDragging: React.PropTypes.bool,
room: React.PropTypes.object.isRequired,
@@ -121,12 +120,6 @@ module.exports = React.createClass({
}
},
- onFocus: function(event) {
- if (this.props.onFocus) {
- this.props.onFocus(this.props.room.roomId, event);
- }
- },
-
onMouseEnter: function() {
this.setState( { hover : true });
this.badgeOnMouseEnter();
@@ -279,8 +272,7 @@ module.exports = React.createClass({
let ret = (
{ /* Only native elements can be wrapped in a DnD object. */}
+ onMouseEnter={this.onMouseEnter} onMouseLeave={this.onMouseLeave}>