Skip to content

Commit

Permalink
Remove the unnecessary workaround since we're requiring 0.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wengxt committed May 3, 2024
1 parent b9a8ed6 commit c85da1d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/eim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -471,14 +471,6 @@ void ChewingEngine::keyEvent(const InputMethodEntry &entry,
chewing_set_easySymbolInput(ctx, *config_.EasySymbolInput ? 1 : 0);
}
int scan_code = keyEvent.key().sym() & 0xff;
if (*config_.Layout == ChewingLayout::HanYuPinYin) {
auto zuin = safeChewing_bopomofo_String(ctx);
// Workaround a bug in libchewing fixed in 2017 but never has
// stable release.
if (zuin.size() >= 9) {
return keyEvent.filterAndAccept();
}
}
chewing_handle_Default(ctx, scan_code);
chewing_set_easySymbolInput(ctx, 0);
} else if (keyEvent.key().check(FcitxKey_BackSpace)) {
Expand Down

0 comments on commit c85da1d

Please sign in to comment.