engine: one ASCII fold, commitim through impre, no second modifier check

Four places lower-cased ASCII by hand; commitim repeated impre's three
lines to compute the text it commits; and transition() began by
rejecting modifier keys that imhandlekey's keymeaningful() had already
turned away, kept alive only by tests calling transition() directly.
The test helper now goes through the same gate.
This commit is contained in:
2026-08-17 01:24:56 +09:00
parent 852e129f62
commit 97e6f2cf1a
2 changed files with 16 additions and 14 deletions

View File

@@ -10,7 +10,7 @@ keystroke(u32int ks, u32int mod, Str *com)
{
int eaten;
eaten = transition(ks, mod, com);
eaten = keymeaningful(ks) && transition(ks, mod, com);
redraw();
return eaten;
}