Fix share message context menu option keyboard a11y

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2020-02-14 09:36:10 +00:00
parent 786d853f4c
commit 42b63fbc81
1 changed files with 1 additions and 1 deletions

View File

@ -414,7 +414,7 @@ export default createReactClass({
}
// XXX: if we use room ID, we should also include a server where the event can be found (other than in the domain of the event ID)
const permalinkButton = (
<MenuItem className="mx_MessageContextMenu_field">
<MenuItem className="mx_MessageContextMenu_field" onClick={this.onPermalinkClick}>
<a href={permalink} target="_blank" rel="noopener" onClick={this.onPermalinkClick} tabIndex={-1}>
{ mxEvent.isRedacted() || mxEvent.getType() !== 'm.room.message'
? _t('Share Permalink') : _t('Share Message') }