Add comment
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
2e6899be93
commit
fac8274559
1 changed files with 1 additions and 0 deletions
|
@ -120,6 +120,7 @@ const LeftPanel = createReactClass({
|
||||||
if (!this.focusedElement) return;
|
if (!this.focusedElement) return;
|
||||||
|
|
||||||
switch (ev.key) {
|
switch (ev.key) {
|
||||||
|
// On enter of rooms filter select and activate first room if such one exists
|
||||||
case Key.ENTER: {
|
case Key.ENTER: {
|
||||||
const firstRoom = ev.target.closest(".mx_LeftPanel").querySelector(".mx_RoomTile");
|
const firstRoom = ev.target.closest(".mx_LeftPanel").querySelector(".mx_RoomTile");
|
||||||
if (firstRoom) {
|
if (firstRoom) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue