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:
minggo 2015-01-26 14:00:58 +08:00
commit cba0e19252
1 changed files with 5 additions and 5 deletions

View File

@ -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();