angular / angular/components

chips: SPACE separator does not work with virtual keyboards on Android

未关闭
#9,237 12 条评论 10 个 reaction 已指派 0 人 在 GitHub 查看
android area: material/chips help wanted P3
主要语言
TypeScript
星标
25k
派生
6.8k
平均合并
1 天 8 小时
30 天内合并 PR
91

描述

#### Bug, feature request, or proposal:
Bug

#### What is the expected behavior?
Separate chips on space when SPACE is set in MatChipInput.matChipInputSeparatorKeyCodes

#### What is the current behavior?
On Android devices it does not. (I personally tried Nesus X5 and pixel xl v1)

#### What are the steps to reproduce?
https://stackblitz.com/edit/chipinput
"android friendly chip input" uses keyup and looks at the last char of the input's value, to get around Android's "bad" keyboard event w/o keys and indistinguishable keycode 229.

#### What is the use-case or motivation for changing an existing behavior?
To be able to use MatChipInput on Android.

#### Which versions of Angular, Material, OS, TypeScript, browsers are affected?
All but on Android devices

#### Is there anything else we should know?
Android produces keycode 229 on space and other special characters.
Related to https://stackoverflow.com/questions/36753548/keycode-on-android-is-always-229/42552368


贡献指南

打开贡献指南

调研方向

Start with the linked StackBlitz reproduction and the MatChipInput.matChipInputSeparatorKeyCodes entry point. Trace the keyup handling and how the input value is checked when Android reports keycode 229. Done means SPACE consistently separates chips with Android virtual keyboards while preserving existing separator behavior.

由索引模型根据 Issue 内容生成。

评估

技术栈
android, angular, typescript
领域
frontend, mobile
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。