Erratic text output from typing into xterm console on Chrome on Android devices
#3,600 创建于 2022年1月8日
仓库指标
- 星标
- (16,196 个星标)
- PR 合并指标
- (平均合并 2天 10小时) (30 天内合并 16 个 PR)
描述
We are using xterm at replit to provide users with a console, and our app runs on mobile as well. A significant number of our Android users are reporting that they are having issues with typing into their console, specifically, they are seeing their characters get jumbled up, duplicate characters, and weird text.
I found this from CodeMirror which would explain it:
Chrome Android, especially in combination with GBoard, not only doesn't reliably fire regular key events, but also often surrounds the effect of enter or backspace with a bunch of composition events that, when interrupted, cause text duplication or other kinds of corruption.
They've documented the workaround they use for their code editor here, which you can use as reference for fixing this bug around the Android Chrome limitation.
We would be very appreciative if you could prioritize this fix given the significant number of people affected by it.
Details
- Browser and browser version: Chrome (latest)
- OS version: Android (Galaxy S9)
- xterm.js version: 4.14.1
Steps to reproduce
- Type a number into the console.
- See duplicated text output of the number.