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>
<li className="nav__dropdown-item">
<button
onFocus={this.handleFocus.bind(this, 'help')}
onBlur={this.handleBlur}
onClick={() => {
this.props.showKeyboardShortcutModal();
this.setDropdown('none');