forked from organicmaps/organicmaps
Merge pull request #6426 from igrechuhin/MAPSME-4687
[MAPSME-4687] [ios] Fixed search button tap behavior.
This commit is contained in:
commit
ca0d9b0820
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue