Fix delayed handleTextUpdated
This commit is contained in:
parent
51b50a27cd
commit
04cd0208e2
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user