Skip to content

[Keyboard, Android] Modifier key_down can have 0 modifier, leading to crash #108124

@dkwingsmt

Description

@dkwingsmt

Internal issue b/238717013 reported a crash with the following log:

java.lang.AssertionError: Unexpected metaState 0 for key 0x200000102 during an ACTION_down event.

java.lang.AssertionError
  at io.flutter.embedding.android.KeyEmbedderResponder.synchronizePressingKey(PG:12)
  at io.flutter.embedding.android.KeyEmbedderResponder.handleEventImpl(PG:5)
  at io.flutter.embedding.android.KeyEmbedderResponder.handleEvent(PG:1)
  at io.flutter.embedding.android.KeyboardManager.handleEvent(PG:5)
  at io.flutter.embedding.android.FlutterView.dispatchKeyEvent(PG:5)

which indicates that Android sent a modifier Shift Left key down with the Shift meta state as 0, causing crashes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1High-priority issues at the top of the work lista: text inputEntering text in a text field or keyboard related problemsplatform-androidAndroid applications specifically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions