mirror of https://github.com/axmolengine/axmol.git
Merge pull request #9922 from joshuastray/fix-order-of-detach-atach-of-textfield
Change the order of detach and attach of TextField::upadate
This commit is contained in:
commit
cba0e19252
|
@ -594,16 +594,16 @@ const char* TextField::getPasswordStyleText()const
|
|||
|
||||
void TextField::update(float dt)
|
||||
{
|
||||
if (getAttachWithIME())
|
||||
{
|
||||
attachWithIMEEvent();
|
||||
setAttachWithIME(false);
|
||||
}
|
||||
if (getDetachWithIME())
|
||||
{
|
||||
detachWithIMEEvent();
|
||||
setDetachWithIME(false);
|
||||
}
|
||||
if (getAttachWithIME())
|
||||
{
|
||||
attachWithIMEEvent();
|
||||
setAttachWithIME(false);
|
||||
}
|
||||
if (getInsertText())
|
||||
{
|
||||
insertTextEvent();
|
||||
|
|
Loading…
Reference in New Issue