Skip to content

Commit

Permalink
Merge pull request #358 from stripe/bg-fix-custom-kbs
Browse files Browse the repository at this point in the history
Fix sms code entry using certain custom keyboards
  • Loading branch information
0thernet authored Jul 18, 2016
2 parents f54f032 + 05a256c commit 87cf009
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Stripe/STPAddressFieldTableViewCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ - (instancetype)initWithType:(STPAddressFieldType)type
}

self.textField.placeholder = NSLocalizedString(@"12345", nil);
self.textField.keyboardType = UIKeyboardTypeNumberPad;
self.textField.keyboardType = UIKeyboardTypePhonePad;
self.textField.preservesContentsOnPaste = NO;
self.textField.selectionEnabled = NO;
if (!lastInList) {
Expand Down
6 changes: 3 additions & 3 deletions Stripe/STPObscuredCardView.m
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,19 @@ - (instancetype)initWithFrame:(CGRect)frame {

UITextField *last4Field = [UITextField new];
last4Field.delegate = self;
last4Field.keyboardType = UIKeyboardTypeNumberPad;
last4Field.keyboardType = UIKeyboardTypePhonePad;
[self addSubview:last4Field];
_last4Field = last4Field;

UITextField *expField = [UITextField new];
expField.delegate = self;
expField.keyboardType = UIKeyboardTypeNumberPad;
expField.keyboardType = UIKeyboardTypePhonePad;
[self addSubview:expField];
_expField = expField;

UITextField *cvcField = [UITextField new];
cvcField.delegate = self;
cvcField.keyboardType = UIKeyboardTypeNumberPad;
cvcField.keyboardType = UIKeyboardTypePhonePad;
cvcField.secureTextEntry = YES;
[self addSubview:cvcField];
_cvcField = cvcField;
Expand Down
2 changes: 1 addition & 1 deletion Stripe/STPPaymentCardTextField.m
Original file line number Diff line number Diff line change
Expand Up @@ -536,7 +536,7 @@ - (void)layoutSubviews {
- (STPFormTextField *)buildTextField {
STPFormTextField *textField = [[STPFormTextField alloc] initWithFrame:CGRectZero];
textField.backgroundColor = [UIColor clearColor];
textField.keyboardType = UIKeyboardTypeNumberPad;
textField.keyboardType = UIKeyboardTypePhonePad;
textField.font = self.font;
textField.defaultColor = self.textColor;
textField.errorColor = self.textErrorColor;
Expand Down
2 changes: 1 addition & 1 deletion Stripe/STPSMSCodeTextField.m
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ - (instancetype)initWithFrame:(CGRect)frame {
for (NSInteger i=0; i < 3; i++) {
STPCodeInternalTextField *textField = [STPCodeInternalTextField new];
textField.delegate = self;
textField.keyboardType = UIKeyboardTypeNumberPad;
textField.keyboardType = UIKeyboardTypePhonePad;
textField.internalDelegate = self;
textField.textAlignment = NSTextAlignmentCenter;
[textFields addObject:textField];
Expand Down

0 comments on commit 87cf009

Please sign in to comment.