make keyboard nav accessible (#628)

This commit is contained in:
Liang Tang 2018-05-12 08:07:29 +08:00 committed by Cassie Tarakajian
parent f0428dc88f
commit 7a48899862

View file

@ -388,6 +388,8 @@ class Nav extends React.PureComponent {
</button> </button>
<li className="nav__dropdown-item"> <li className="nav__dropdown-item">
<button <button
onFocus={this.handleFocus.bind(this, 'help')}
onBlur={this.handleBlur}
onClick={() => { onClick={() => {
this.props.showKeyboardShortcutModal(); this.props.showKeyboardShortcutModal();
this.setDropdown('none'); this.setDropdown('none');