mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[escher] Fixed TextField bug.
The Statistics apps crashed when navigating the Data table. -> Check that the textfield is editing before calling textFieldShouldFinishEditing. -> Changed textLength() to draftTextLength(). Change-Id: Id373a7cd50438303f470abc5bcee7a795c33926a
This commit is contained in:
@@ -274,7 +274,7 @@ bool MenuController::textFieldShouldFinishEditing(TextField * textField, Ion::Ev
|
||||
bool MenuController::textFieldDidReceiveEvent(TextField * textField, Ion::Events::Event event) {
|
||||
if (event == Ion::Events::Right && textField->isEditing()) {
|
||||
int scriptExtensionLength = strlen(ScriptStore::k_scriptExtension);
|
||||
if (textField->cursorLocation() > textField->textLength() - scriptExtensionLength - 1) {
|
||||
if (textField->cursorLocation() > textField->draftTextLength() - scriptExtensionLength - 1) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user