1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include "parameter_text_field_delegate.h" using namespace Poincare; namespace Shared { bool ParameterTextFieldDelegate::textFieldDidReceiveEvent(::TextField * textField, Ion::Events::Event event) { if (event == Ion::Events::Backspace && !textField->isEditing()) { textField->setEditing(true); return true; } return TextFieldDelegate::textFieldDidReceiveEvent(textField, event); } }