Skip to content

Commit

Permalink
Added the backspaceDelegate which works for default iOS keyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Rentka committed Feb 25, 2016
1 parent bd593bf commit 28d4a9b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions VENTokenField/VENTokenField.m
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ - (void)layoutInvisibleTextField
[self.invisibleTextField setAutocorrectionType:self.autocorrectionType];
[self.invisibleTextField setAutocapitalizationType:self.autocapitalizationType];
self.invisibleTextField.delegate = self;
self.invisibleTextField.backspaceDelegate = self;
[self addSubview:self.invisibleTextField];
}

Expand Down Expand Up @@ -409,6 +410,7 @@ - (VENBackspaceTextField *)inputTextField
_inputTextField.autocapitalizationType = self.autocapitalizationType;
_inputTextField.tintColor = self.colorScheme;
_inputTextField.delegate = self;
_inputTextField.backspaceDelegate = self;
_inputTextField.placeholder = self.placeholderText;
_inputTextField.accessibilityLabel = self.inputTextFieldAccessibilityLabel ?: NSLocalizedString(@"To", nil);
_inputTextField.inputAccessoryView = self.inputTextFieldAccessoryView;
Expand Down

0 comments on commit 28d4a9b

Please sign in to comment.