inputmethod: update state on new value not cached value
We want to update the inputpanel state on new value which is being set and not based on the cached value. Fixes the keyboard going in wrong mode like pre-edit mode when closed and re-opened.
This commit is contained in:
parent
257d8f32cf
commit
18af4032e4
1 changed files with 1 additions and 3 deletions
|
@ -134,9 +134,7 @@ void InputMethod::setActive(bool active)
|
|||
}
|
||||
|
||||
waylandServer()->inputMethod()->sendActivate();
|
||||
if (m_active) {
|
||||
adoptInputMethodContext();
|
||||
}
|
||||
adoptInputMethodContext();
|
||||
} else {
|
||||
updateInputPanelState();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue