From fe43be62afaf98989712418ad9cfb850a0e09bbd Mon Sep 17 00:00:00 2001 From: Andrey Shimagin Date: Fri, 1 Apr 2022 14:39:20 +0300 Subject: [PATCH] Fix keyboard search --- apps/common/mobile/lib/view/Search.jsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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('')} />