Fix tabbing through room sublist

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2019-10-17 17:03:37 +01:00
parent f09a3b4281
commit 3eef1bf87e
1 changed files with 2 additions and 3 deletions

View File

@ -128,7 +128,7 @@ const RoomSubList = createReactClass({
this._headerButton.current.focus();
},
onKeyDown: function(ev) {
onHeaderKeyDown: function(ev) {
switch (ev.key) {
case Key.TAB:
// Prevent LeftPanel handling Tab if focus is on the sublist header itself
@ -297,7 +297,7 @@ const RoomSubList = createReactClass({
}
return (
<div className="mx_RoomSubList_labelContainer" title={title} ref="header">
<div className="mx_RoomSubList_labelContainer" title={title} ref="header" onKeyDown={this.onHeaderKeyDown}>
<AccessibleButton
onClick={this.onClick}
className="mx_RoomSubList_label"
@ -391,7 +391,6 @@ const RoomSubList = createReactClass({
className={subListClasses}
role="group"
aria-label={this.props.label}
onKeyDown={this.onKeyDown}
>
{ this._getHeaderJsx(isCollapsed) }
{ content }