Skip to content

☂️ Device-specific keyboard events should happen in the embedder #44918

@gspencergoog

Description

@gspencergoog

In order to make implementing #33521 easier, and because it is a better factoring of the code, it makes sense to have the embedding side translate the local key events into a generic representation that the framework can then pass along.

This could be done by moving all of the keyboard key translation to the engine side, normalize it there, and just send a generic key event to the framework.

This would be a large breaking change on the framework side to remove the ability to look at the raw key event data on the framework side, but that is a fairly uncommon operation. We would have to make sure that we encoded all the relevant information in the generic key event (key repeat counts, left/right modifier information, etc.).

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority issues at the top of the work lista: desktopRunning on desktopa: text inputEntering text in a text field or keyboard related problemsengineflutter/engine related. See also e: labels.frameworkflutter/packages/flutter repository. See also f: labels.team-text-inputOwned by Text Input team

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions