基本构成
从一行增高(MDN, n.d.-a),空时显示语音输入(Ruan et al., 2018),设定回车(MDN, n.d.-b;Apple, n.d.)。
避免键盘遮挡
跟随键盘(Android Developers, n.d.),遵守安全区域,保存草稿(Reyal et al., 2015),选择键盘类型。
发送状态与无障碍
发送中→已发送,失败可重发。为图标按钮命名并播报状态(W3C, 2023)。
常见问题
- 回车该发送吗?
- 手机上多为换行。
- 被键盘挡住怎么办?
- 跟随键盘高度。
来源核查日期:2026-10-27
参考文献
- MDN Web Docs. (n.d.-a). <textarea>: The textarea element. 多行输入元素。
- MDN Web Docs. (n.d.-b). enterkeyhint. 回车键提示属性。
- Android Developers. (n.d.). Control and animate the software keyboard. 软键盘适配。
- Apple. (n.d.). Virtual keyboards. Human Interface Guidelines. 键盘类型。
- Reyal, S., Zhai, S., & Kristensson, P. O. (2015). Performance and user experience of touchscreen and gesture keyboards in a lab setting and in the wild. In Proceedings of the 33rd Annual ACM Conference on Human Factors in Computing Systems (pp. 679–688). ACM. 真实环境键盘研究。
- Ruan, S., Wobbrock, J. O., Liou, K., Ng, A., & Landay, J. A. (2018). Comparing speech and keyboard text entry for short messages in two languages on touchscreen phones. Proceedings of the ACM on Interactive, Mobile, Wearable and Ubiquitous Technologies, 1(4), Article 159. 语音与键盘速度。
- World Wide Web Consortium. (2023). Web Content Accessibility Guidelines (WCAG) 2.2. 名称角色与状态消息。
