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:
@@ -18,7 +18,7 @@ bool EditableCellTableViewController::textFieldShouldFinishEditing(TextField * t
|
||||
return TextFieldDelegate::textFieldShouldFinishEditing(textField, event)
|
||||
|| (event == Ion::Events::Down && selectedRow() < numberOfRows()-1)
|
||||
|| (event == Ion::Events::Up && selectedRow() > 0)
|
||||
|| (event == Ion::Events::Right && textField->cursorLocation() == textField->textLength() && selectedColumn() < numberOfColumns()-1)
|
||||
|| (event == Ion::Events::Right && textField->cursorLocation() == textField->draftTextLength() && selectedColumn() < numberOfColumns()-1)
|
||||
|| (event == Ion::Events::Left && textField->cursorLocation() == 0 && selectedColumn() > 0); }
|
||||
|
||||
bool EditableCellTableViewController::textFieldDidFinishEditing(TextField * textField, const char * text, Ion::Events::Event event) {
|
||||
|
||||
Reference in New Issue
Block a user