Merge pull request #3543 from matrix-org/t3chguy/timeline_keyboard_focus

Don't intercept TAB on the app outside of the composer, fix tabIndex > 0
This commit is contained in:
Michael Telatynski 2019-10-10 17:52:10 +01:00 committed by GitHub
commit dcc948f43d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 6 additions and 11 deletions

View file

@ -108,7 +108,7 @@ export class TopLeftMenu extends React.Component {
</AccessibleButton>
);
return <div className="mx_TopLeftMenu mx_HiddenFocusable" tabIndex={0} ref={this.props.containerRef}>
return <div className="mx_TopLeftMenu" ref={this.props.containerRef}>
<div className="mx_TopLeftMenu_section_noIcon" aria-readonly={true}>
<div>{this.props.displayName}</div>
<div className="mx_TopLeftMenu_greyedText" aria-hidden={true}>{this.props.userId}</div>

View file

@ -553,7 +553,7 @@ export default class BasicMessageEditor extends React.Component {
<div
className="mx_BasicMessageComposer_input"
contentEditable="true"
tabIndex="1"
tabIndex="0"
onBlur={this._onBlur}
onFocus={this._onFocus}
onPaste={this._onPaste}