Skip to content

Commit

Permalink
fix , not committed immediately when , after number/english is deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleoflqj committed Jun 19, 2024
1 parent 9dffa86 commit c25503f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions macosfrontend/macosfrontend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,12 @@ MacosInputContext::~MacosInputContext() {

void MacosInputContext::commitStringImpl(const std::string &text) {
state_.commit += text;
// For async event we need to perform commit, otherwise it's buffered and
// committed in next commit with a key event. e.g. fcitx commits a ,
// asynchronously when deleting , after a number/English character.
if (!isSyncEvent) {
commitAndSetPreeditAsync();
}
}

void MacosInputContext::updatePreeditImpl() {
Expand Down

0 comments on commit c25503f

Please sign in to comment.