[ios] Changed bookmark name editor’s enter button to “Done” as it closes the editor

This commit is contained in:
Alex Zolotarev 2014-07-05 15:11:20 +02:00 committed by Alex Zolotarev
parent 33656e682f
commit fb8187925b

View file

@ -21,6 +21,7 @@
Bookmark const * bookmark = category->GetBookmark(self.bookmarkAndCategory.second);
self.textField.delegate = self;
self.textField.returnKeyType = UIReturnKeyDone;
if (!self.temporaryName)
self.textField.text = bookmark->GetName().empty() ? NSLocalizedString(@"dropped_pin", nil) : [NSString stringWithUTF8String:bookmark->GetName().c_str()];