Skip to content

Keyboard Crashes When Placeholder Popup Key Is the Only Configured Popup #1324

Description

@RHJihan

The keyboard crashes when a key is configured with a placeholder as the only popup key, and the user selects only the "Layout" popup key order in settings. This occurs because the placeholder type does not have a label or associated functionality, resulting in a crash when the key is long-pressed.

Example Key Configuration

{
  "label": "ক",
  "popup": {
    "relevant": [
      {
        "type": "placeholder"
      }
    ]
  }
}

Steps to Reproduce

  1. Configure a key as shown in the example above.
  2. Go to the app settings and set the popup key order to "Layout" only, disabling all other options.
  3. Long-press the key labeled "ক".

Expected Behavior
The key should either:

  • Display no popup keys gracefully, or
  • Prevent the long-press interaction entirely when no valid popup keys are available.

Actual Behavior
The keyboard crashes when the key is long-pressed due to the presence of only a placeholder popup key.

App version
Upto 35e0fe6

Device

  • Model: Galaxy M32
  • OS: Android 13

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcontributor neededFeature needs a contributor in order to get implemented. Please ask if you're interested.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions