返回 Skill 列表
extension
分类: 开发与工程无需 API Key

ios-input-hints

确保在网页应用中编辑或审查UI表单时,表单输入对iOS/iPadOS友好(键盘类型、输入模式、自动完成、自动大写/自动纠正、回车键提示)。在添加或修改表单字段(Svelte/HTML/TSX等)、审核表单用户体验或修复移动版Safari键盘问题时使用。

person作者: jakexiaohubgithub

iOS Input Hints

Overview

Use this skill when working on UI forms to make input fields trigger the correct iOS/iPadOS keyboard and behavior without changing layout.

Workflow

  1. Identify every input/textarea/select in the target form(s).
  2. For each field, choose the correct semantic type and inputmode based on expected data.
  3. Add or validate autocomplete, autocapitalize, autocorrect, and enterkeyhint where helpful and safe.
  4. Keep visual structure untouched; only adjust attributes.

Keyboard Mapping (quick rules)

  • Numbers (integer): type="number" + inputmode="numeric".
  • Numbers (decimal): type="number" + inputmode="decimal".
  • Free text: type="text" (no inputmode unless a specialized keyboard is desired).
  • Email: type="email" (email keyboard) + autocomplete="email".
  • URL: type="url" + autocomplete="url".
  • Phone: type="tel" + autocomplete="tel".
  • Search: type="search" + enterkeyhint="search".

Meta Behaviors

  • Autocomplete: Use the most specific token possible (e.g., given-name, family-name, current-password, new-password, username).
  • Autocapitalize/autocorrect: Disable for codes, IDs, URLs, emails, and handles; allow for freeform text.
  • Enter key: Use enterkeyhint to match intent (next, done, search, send).
  • Do not reshape UI: Only adjust attributes; no styling or layout changes.

References

  • See references/ios-input-hints.md for detailed attribute guidance and examples.