| Index: ios/chrome/browser/ui/payments/address_edit_mediator.mm
|
| diff --git a/ios/chrome/browser/ui/payments/address_edit_mediator.mm b/ios/chrome/browser/ui/payments/address_edit_mediator.mm
|
| index 90128fc33b03f115842d77234a4bbf7a4fd4aa32..1dc7e724b3f71a0774dbe8a21b59b1f0804cf87e 100644
|
| --- a/ios/chrome/browser/ui/payments/address_edit_mediator.mm
|
| +++ b/ios/chrome/browser/ui/payments/address_edit_mediator.mm
|
| @@ -260,6 +260,15 @@
|
| label:nil
|
| value:value
|
| required:required];
|
| + // Set the keyboardType and autoCapitalizationType as appropriate.
|
| + if (autofillUIType == AutofillUITypeProfileEmailAddress) {
|
| + field.keyboardType = UIKeyboardTypeEmailAddress;
|
| + field.autoCapitalizationType = UITextAutocapitalizationTypeNone;
|
| + } else if (autofillUIType == AutofillUITypeProfileHomeAddressZip) {
|
| + field.autoCapitalizationType =
|
| + UITextAutocapitalizationTypeAllCharacters;
|
| + }
|
| +
|
| [self.fieldsMap setObject:field forKey:fieldKey];
|
| }
|
|
|
| @@ -321,6 +330,8 @@
|
| label:l10n_util::GetNSString(IDS_IOS_AUTOFILL_PHONE)
|
| value:value
|
| required:YES];
|
| + field.keyboardType = UIKeyboardTypePhonePad;
|
| + field.returnKeyType = UIReturnKeyDone;
|
| [self.fieldsMap setObject:field forKey:phoneNumberFieldKey];
|
| }
|
| [self.fields addObject:field];
|
|
|