omnibox: stop enter from propagation

Fixes #3277.
This commit is contained in:
Matilde Park 2020-08-11 12:12:27 -04:00
parent 7abeebc672
commit aaa763214b

View File

@ -68,6 +68,7 @@ export class Omnibox extends Component {
}
if (evt.key === 'Enter') {
evt.preventDefault();
if (this.state.selected !== '') {
this.navigate(this.state.selected);
} else {