Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/iphone
diff options
context:
space:
mode:
authorVlad Mihaylenko <vxmihaylenko@gmail.com>2017-06-29 16:08:23 +0300
committerGitHub <noreply@github.com>2017-06-29 16:08:23 +0300
commitca0d9b0820d26b3fd03a6d8a18f7d5e1c2f48dcb (patch)
treea37b6b7cf00caae79bfc18c8b6f6cadf83acf4b3 /iphone
parentd3f194ccf62be876ba78a0b1bbb4bd9d75e37f03 (diff)
parentf5c1a2ec3e8463b3ea5789a0b610397de18e595f (diff)
Merge pull request #6426 from igrechuhin/MAPSME-4687
[MAPSME-4687] [ios] Fixed search button tap behavior.
Diffstat (limited to 'iphone')
-rw-r--r--iphone/Maps/UI/Search/MWMSearchManager.mm2
1 files changed, 2 insertions, 0 deletions
diff --git a/iphone/Maps/UI/Search/MWMSearchManager.mm b/iphone/Maps/UI/Search/MWMSearchManager.mm
index 3f1d3b42c2..a32944d514 100644
--- a/iphone/Maps/UI/Search/MWMSearchManager.mm
+++ b/iphone/Maps/UI/Search/MWMSearchManager.mm
@@ -175,6 +175,8 @@ typedef NS_ENUM(NSUInteger, MWMSearchManagerActionBarState) {
- (BOOL)textFieldShouldReturn:(UITextField *)textField
{
+ textField.text = [[textField.text stringByTrimmingCharactersInSet:NSCharacterSet.whitespaceCharacterSet] stringByAppendingString:@" "];
+ [self textFieldTextDidChange:textField];
[textField resignFirstResponder];
return YES;
}