Add comment

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2019-10-23 18:45:04 +01:00
parent 2e6899be93
commit fac8274559
1 changed files with 1 additions and 0 deletions

View File

@ -120,6 +120,7 @@ const LeftPanel = createReactClass({
if (!this.focusedElement) return;
switch (ev.key) {
// On enter of rooms filter select and activate first room if such one exists
case Key.ENTER: {
const firstRoom = ev.target.closest(".mx_LeftPanel").querySelector(".mx_RoomTile");
if (firstRoom) {