Numworks Epsilon  1.4.1
Graphing Calculator Operating System
parameter_text_field_delegate.cpp
Go to the documentation of this file.
2 
3 using namespace Poincare;
4 
5 namespace Shared {
6 
7 bool ParameterTextFieldDelegate::textFieldDidReceiveEvent(::TextField * textField, Ion::Events::Event event) {
8  if (event == Ion::Events::Backspace && !textField->isEditing()) {
9  textField->setEditing(true);
10  return true;
11  }
12  return TextFieldDelegate::textFieldDidReceiveEvent(textField, event);
13 }
14 
15 }
bool isEditing() const
Definition: text_field.cpp:175
virtual void setEditing(bool isEditing, bool reinitDraftBuffer=true)
Definition: text_field.cpp:196
virtual bool textFieldDidReceiveEvent(TextField *textField, Ion::Events::Event event)=0
constexpr Event Backspace
Definition: events.h:76