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:
@@ -66,8 +66,8 @@ vietnamese_state_lifetime(struct ct *t)
|
||||
im.pre = mkstr("as");
|
||||
im.raw = mkstr("as");
|
||||
sclear(&com);
|
||||
CT_CHECK(t, keystroke(Kesc, 0, &com));
|
||||
CT_EQ_INT(t, 0, com.n);
|
||||
CT_CHECK(t, !keystroke(Kesc, 0, &com));
|
||||
checkstr(t, "Escape commits Telex", "á", &com);
|
||||
CT_EQ_INT(t, 0, im.pre.n);
|
||||
CT_EQ_INT(t, 0, im.raw.n);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user