diff --git a/apps/common/mobile/lib/view/Search.jsx b/apps/common/mobile/lib/view/Search.jsx index 82d4dbc88..6fb8d59b5 100644 --- a/apps/common/mobile/lib/view/Search.jsx +++ b/apps/common/mobile/lib/view/Search.jsx @@ -233,6 +233,12 @@ class SearchView extends Component { replaceQuery: value }); } + + onSearchKeyBoard(event) { + if(event.keyCode === 13) { + this.props.onSearchQuery(this.searchParams()); + } + } render() { const usereplace = searchOptions.usereplace; @@ -258,7 +264,8 @@ class SearchView extends Component {
- this.onSearchKeyBoard(e)} onChange={e => {this.changeSearchQuery(e.target.value)}} /> {isIos ? : null} this.changeSearchQuery('')} />