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
- Open the JSBin link in an android browser (I've tried both Firefox and Chrome)
- Press the
Add Attachment button
- 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:
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
InputControllernever receives akeyCodeforbackspace.It seems like on Android 'keydown' events will always output a
keyCodeof 229 instead of the value you would see on other platforms.Steps to reproduce
Minimal repro case: https://output.jsbin.com/xaceco
Add AttachmentbuttonNote: This works fine in desktop browsers or iOS
Related reading
Chromium Bug:
Related StackOverflow threads: