engine: the digits type until the candidate list is engaged
Every complete reading shows its candidates, so 1-9 were candidate picks in the middle of composing: ka then 5 committed 家, and heya then 2 typed a 2 the application never asked for. They pick only once Space, Tab, or an arrow has chosen a candidate, as in Mozc; before that they are ordinary keys. A search is unchanged: its digits pick from the start.
This commit is contained in:
@@ -888,6 +888,20 @@ engine_candidate_completion(struct ct *t)
|
||||
CT_CHECK(t, keystroke(Kret, 0, &com));
|
||||
checkstr(t, "Enter without candidates", "reading", &com);
|
||||
|
||||
/* A digit types on until Space engages the list. */
|
||||
candidatebegin(3);
|
||||
im.pre = mkstr("reading");
|
||||
sclear(&com);
|
||||
CT_CHECK(t, !keystroke('2', 0, &com));
|
||||
checkstr(t, "digit before the list is engaged", "reading", &com);
|
||||
CT_EQ_INT(t, 0, im.nkouho);
|
||||
candidatebegin(3);
|
||||
im.pre = mkstr("reading");
|
||||
sclear(&com);
|
||||
CT_CHECK(t, keystroke(' ', 0, &com));
|
||||
CT_CHECK(t, keystroke('2', 0, &com));
|
||||
checkstr(t, "digit after the list is engaged", "c2", &com);
|
||||
|
||||
/* A digit with no such row on the page is an ordinary key: it
|
||||
* confirms the candidate paged to and passes on. */
|
||||
candidatebegin(32);
|
||||
|
||||
Reference in New Issue
Block a user