1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-04 00:20:07 +00:00

[a11y] 'transfer' dialog: added support for 'keyboard access'

This commit is contained in:
llj
2021-10-08 16:02:59 +08:00
parent fb205f3c65
commit f4f85dcb16

View File

@@ -95,7 +95,7 @@ class TransferDialog extends React.Component {
/>
}
{isPro && canTransferToDept &&
<span className="action-link" onClick={this.onClick}>{this.state.transferToUser ?
<span role="button" tabIndex="0" className="action-link" onClick={this.onClick} onKeyDown={Utils.onKeyDown}>{this.state.transferToUser ?
gettext('Transfer to department'): gettext('Transfer to user')}
</span>
}