Blame view

Modif/epsilon-master/apps/shared/parameter_text_field_delegate.cpp 401 Bytes
6663b6c9   adorian   projet complet av...
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);
  }
  
  }