From 28d4a9bfabffd43251763f989161b01a49213b38 Mon Sep 17 00:00:00 2001 From: Michal Rentka Date: Thu, 25 Feb 2016 16:30:16 +0100 Subject: [PATCH] Added the `backspaceDelegate` which works for default iOS keyboard --- VENTokenField/VENTokenField.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/VENTokenField/VENTokenField.m b/VENTokenField/VENTokenField.m index f962a68..a33be90 100644 --- a/VENTokenField/VENTokenField.m +++ b/VENTokenField/VENTokenField.m @@ -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]; } @@ -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;