Skip to content

feat(core): ensure that app_context tracks cached_context when normalization is not being used #10421

@mcdurdin

Description

@mcdurdin

From #10403.

As of #10403, the app_context is correctly updated to match the new reality after actions are processed by the app, but only when we are using normalization -- the actions_normalize code makes the update. If normalization is not used (i.e. KMN keyboards), then app_context gets out of sync. We need to update the app_context to match the cached_context in this situation -- a relatively simple transform because we just app_context.pop_back actions->code_points_to_delete times, and then append each actions->output USV to app_context (no need to worry about markers).

Plus unit tests of course.

// ********************************************************************************
// TODO: if we don't apply normalization, we should still fixup the app_context
// ********************************************************************************

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions