forked from organicmaps/organicmaps
[MAPSME-4687] [ios] Fixed search button tap behavior.
This commit is contained in:
parent
3c9fd26dcf
commit
f5c1a2ec3e
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