[apps/escher] Fix "Clear" event handling in TextFieldWithExtension

This commit is contained in:
Léa Saviot
2018-11-06 15:20:20 +01:00
committed by Émilie Feral
parent 0e2201b273
commit aea98de6ec
6 changed files with 57 additions and 3 deletions

View File

@@ -96,9 +96,13 @@ bool TextInput::insertTextAtLocation(const char * text, int location) {
}
bool TextInput::removeEndOfLine() {
if (contentView()->removeEndOfLine()) {
if (privateRemoveEndOfLine()) {
scrollToCursor();
return true;
}
return false;
}
bool TextInput::privateRemoveEndOfLine() {
return contentView()->removeEndOfLine();
}