textinput: don't reset if ti isn't enabled (#7798)
This commit is contained in:
parent
e74efd87e5
commit
eb97d949aa
1 changed files with 7 additions and 0 deletions
|
|
@ -99,6 +99,13 @@ void CTextInput::onReset() {
|
||||||
if (g_pInputManager->m_sIMERelay.m_pIME.expired())
|
if (g_pInputManager->m_sIMERelay.m_pIME.expired())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (!focusedSurface())
|
||||||
|
return;
|
||||||
|
|
||||||
|
const auto PFOCUSEDTI = g_pInputManager->m_sIMERelay.getFocusedTextInput();
|
||||||
|
if (!PFOCUSEDTI || PFOCUSEDTI != this)
|
||||||
|
return;
|
||||||
|
|
||||||
g_pInputManager->m_sIMERelay.deactivateIME(this, false);
|
g_pInputManager->m_sIMERelay.deactivateIME(this, false);
|
||||||
g_pInputManager->m_sIMERelay.activateIME(this);
|
g_pInputManager->m_sIMERelay.activateIME(this);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue