fix: up and down hotkeys in search bar (#39529)

This fix prevents whitespace from breaking the up and down hotkeys in the search bar.
This commit is contained in:
Kristofer Koishigawa
2020-09-09 03:13:45 +09:00
committed by GitHub
parent 9e3441fe1d
commit 0ccb140f71

View File

@ -183,7 +183,7 @@ export class SearchBar extends Component {
<label className='fcc_sr_only' htmlFor='fcc_instantsearch'>
Search
</label>
<ObserveKeys>
<ObserveKeys except={['Space']}>
<SearchBox
focusShortcuts={[83, 191]}
onChange={this.handleChange}