Merge pull request #6426 from igrechuhin/MAPSME-4687

[MAPSME-4687] [ios] Fixed search button tap behavior.
This commit is contained in:
Vlad Mihaylenko 2017-06-29 16:08:23 +03:00 committed by GitHub
commit ca0d9b0820

View file

@ -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;
}