mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
In this commit, there was a small oversight in 7a4ee746b2, which caused https://github.com/numworks/epsilon/issues/1570
16 lines
443 B
C++
16 lines
443 B
C++
#include "parameter_text_field_delegate.h"
|
|
#include <escher/text_field.h>
|
|
|
|
namespace Shared {
|
|
|
|
bool ParameterTextFieldDelegate::textFieldDidReceiveEvent(TextField * textField, Ion::Events::Event event) {
|
|
if (event == Ion::Events::Backspace && !textField->isEditing()) {
|
|
textField->reinitDraftTextBuffer();
|
|
textField->setEditing(true);
|
|
return true;
|
|
}
|
|
return TextFieldDelegate::textFieldDidReceiveEvent(textField, event);
|
|
}
|
|
|
|
}
|