Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(466)

Unified Diff: ios/chrome/browser/ui/payments/credit_card_edit_mediator.mm

Issue 2956433002: [Payment Request] keyboardType, autoCapitalizationType, etc for text fields (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/ui/payments/credit_card_edit_mediator.mm
diff --git a/ios/chrome/browser/ui/payments/credit_card_edit_mediator.mm b/ios/chrome/browser/ui/payments/credit_card_edit_mediator.mm
index a88b846431d8bfe9d0735815cd090fa2ef1785e1..65b549606d92dc7ce4cc43a571cf839194b785ec 100644
--- a/ios/chrome/browser/ui/payments/credit_card_edit_mediator.mm
+++ b/ios/chrome/browser/ui/payments/credit_card_edit_mediator.mm
@@ -257,6 +257,7 @@ using ::payment_request_util::GetBillingAddressLabelFromAutofillProfile;
label:l10n_util::GetNSString(IDS_PAYMENTS_CARD_NUMBER)
value:creditCardNumber
required:YES];
+ creditCardNumberField.keyboardType = UIKeyboardTypeNumberPad;
[self.fieldsMap setObject:creditCardNumberField forKey:fieldKey];
}
[fields addObject:creditCardNumberField];

Powered by Google App Engine
This is Rietveld 408576698