Skip to content

InputController backspace will never fire on Android browsers, causes issues deleting attachments #178

Closed
@tedtate

Description

@tedtate

Hi all,

Description

So I noticed an interesting bug on Android, it isn't possible to delete attachments with the keyboard due to the fact that InputController never receives a keyCode for backspace.

It seems like on Android 'keydown' events will always output a keyCode of 229 instead of the value you would see on other platforms.

Steps to reproduce

Minimal repro case: https://output.jsbin.com/xaceco

  1. Open the JSBin link in an android browser (I've tried both Firefox and Chrome)
  2. Press the Add Attachment button
  3. But your cursor in the trix editor and try to delete the attachment via backspace

Note: This works fine in desktop browsers or iOS

Related reading

Chromium Bug:

Related StackOverflow threads:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions