mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 12:28:50 +03:00
add null-guard
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
8971211639
commit
1afdb0e3c0
1 changed files with 3 additions and 1 deletions
|
@ -95,7 +95,9 @@ var LeftPanel = React.createClass({
|
||||||
break;
|
break;
|
||||||
case KeyCode.ENTER:
|
case KeyCode.ENTER:
|
||||||
this._onMoveFocus(false);
|
this._onMoveFocus(false);
|
||||||
|
if (this.focusedElement) {
|
||||||
this.focusedElement.click();
|
this.focusedElement.click();
|
||||||
|
}
|
||||||
handled = true;
|
handled = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue