Skip to content

Commit de920b5

Browse files
authored
reset input context on toggle preedit (#1460)
1 parent bdddc56 commit de920b5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/lib/fcitx/instance.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,8 @@ Instance::Instance(int argc, char **argv) {
869869
if (!keyEvent.isRelease() &&
870870
keyEvent.key().checkKeyList(
871871
d->globalConfig_.togglePreeditKeys())) {
872+
// Clear client preedit on disable.
873+
ic->reset();
872874
ic->setEnablePreedit(!ic->isPreeditEnabled());
873875
if (d->notifications_) {
874876
d->notifications_->call<INotifications::showTip>(

0 commit comments

Comments
 (0)