mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-18 21:30:38 +01:00
[escher] LayoutField: the buffer layout needs to be cleared before next
use of layout_field
This commit is contained in:
committed by
LeaNumworks
parent
466c44781a
commit
83715153fc
@@ -185,7 +185,10 @@ bool LayoutField::privateHandleEvent(Ion::Events::Event event) {
|
||||
}
|
||||
if (isEditing() && m_delegate->layoutFieldShouldFinishEditing(this, event)) { //TODO use class method?
|
||||
setEditing(false);
|
||||
m_delegate->layoutFieldDidFinishEditing(this, layout(), event);
|
||||
if (m_delegate->layoutFieldDidFinishEditing(this, layout(), event)) {
|
||||
// Reinit layout for next use
|
||||
clearLayout();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
if ((event == Ion::Events::OK || event == Ion::Events::EXE) && !isEditing()) {
|
||||
|
||||
Reference in New Issue
Block a user