Fix delayed handleTextUpdated

This commit is contained in:
Benau 2020-07-10 22:08:13 +08:00
parent 51b50a27cd
commit 04cd0208e2
2 changed files with 7 additions and 1 deletions

View File

@ -147,7 +147,7 @@ namespace GUIEngine
//! sets the area of the given line
void setTextRect(s32 line);
//! adds a letter to the edit box
void inputChar(char32_t c);
virtual void inputChar(char32_t c);
//! calculates the current scroll position
void calculateScrollPos();
//! send some gui event to parent

View File

@ -74,6 +74,12 @@ public:
return handled;
}
virtual void inputChar(char32_t c)
{
CGUIEditBox::inputChar(c);
handleTextUpdated();
}
virtual bool OnEvent(const SEvent& event)
{
bool out = CGUIEditBox::OnEvent(event);