engine: Korean and Telex let Escape through after committing

A pending Hangul syllable is real text, and Escape is what vi users
press to leave insert mode; eating it and dropping the syllable served
nobody.  fcitx5-hangul commits and passes any key it does not consume,
Escape included; do the same for Korean and Telex.  A Japanese reading
is still cancelled: there Escape is the IME's own key.
This commit is contained in:
2026-08-17 00:53:43 +09:00
parent e8519b4e06
commit 63fc60dc06
3 changed files with 6 additions and 4 deletions

View File

@@ -704,7 +704,7 @@ transition(u32int ks, u32int mod, Str *com)
flush(com);
return 1;
}
if(ks == Ktab || ks == Kret){
if(ks == Ktab || ks == Kret || (ks == Kesc && !isjp(&im))){
if(!haspre(&im))
return 0;
flush(com);