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)
|
void TextField::update(float dt)
|
||||||
{
|
{
|
||||||
if (getAttachWithIME())
|
|
||||||
{
|
|
||||||
attachWithIMEEvent();
|
|
||||||
setAttachWithIME(false);
|
|
||||||
}
|
|
||||||
if (getDetachWithIME())
|
if (getDetachWithIME())
|
||||||
{
|
{
|
||||||
detachWithIMEEvent();
|
detachWithIMEEvent();
|
||||||
setDetachWithIME(false);
|
setDetachWithIME(false);
|
||||||
}
|
}
|
||||||
|
if (getAttachWithIME())
|
||||||
|
{
|
||||||
|
attachWithIMEEvent();
|
||||||
|
setAttachWithIME(false);
|
||||||
|
}
|
||||||
if (getInsertText())
|
if (getInsertText())
|
||||||
{
|
{
|
||||||
insertTextEvent();
|
insertTextEvent();
|
||||||
|
|
Loading…
Reference in New Issue