This commit is contained in:
Bertrand Songis
2020-10-08 17:59:40 +02:00
parent cc76efd38b
commit 16ebf50f40
3 changed files with 40 additions and 4 deletions
+4
View File
@@ -188,6 +188,10 @@ void TextEdit::onEvent(event_t event)
#if defined(HARDWARE_TOUCH)
bool TextEdit::onTouchEnd(coord_t x, coord_t y)
{
if (!isEnabled()) {
return true;
}
if (!hasFocus()) {
setFocus(SET_FOCUS_DEFAULT);
}