返回提示词目录第 1411 页

设计命令面板与快捷键交互方案

围绕产品操作设计命令清单、搜索排序和快捷键映射,并补充异常状态与无障碍规范。

完整提示词

<context>
A command palette lets frequent users act without hunting through menus, but only if it contains the actions they actually use, finds them from partial or synonym input, and teaches the shortcuts along the way. Common mistakes: a palette that only navigates pages, fuzzy search that ranks rare commands above everyday ones, shortcuts that collide with browser or OS shortcuts or with typing in text fields, single-key shortcuts that fire while someone types, and shortcuts nobody can discover. Good design combines navigation, actions on the current context and recent items, ranks by context and recency, shows each command's shortcut in the result, and has a cheat sheet one key away.
</context>

<task>
<product_context>
{{product_context}}
</product_context>

If the product's main objects and actions are unknown, ask and stop. Other gaps become assumptions marked [confirm].

1. **Scope.** What the palette covers (navigation, actions, object search, settings), what it does not, and its trigger (for example Cmd/Ctrl+K with an alternative where that combination is taken).
2. **Command inventory.** The commands grouped by type, with synonyms users might type, context in which each is available, and which deserve a direct shortcut.
3. **Palette anatomy.** Input, result groups, result row (icon, name, context, shortcut hint), empty query view (recent and suggested), nested steps for commands that need an argument (for example "Assign to..." then a person), and preview if useful.
4. **Search and ranking.** Matching (prefix, fuzzy, synonyms, acronyms), ranking signals (current context, frequency, recency), and how objects and commands mix in results.
5. **Shortcut map.** Shortcuts with platform variants (Cmd versus Ctrl), conflicts checked against common browser and OS shortcuts, sequence shortcuts (g then i) versus modifiers, and which shortcuts are disabled while typing in inputs.
6. **Discoverability.** Shortcut hints in menus and tooltips, a cheat sheet (often "?"), and a hint in onboarding or empty states without nagging.
7. **Edge states.** No results with suggestions, command unavailable in this context (shown disabled with the reason, or hidden, with the rule), permission-restricted commands, destructive commands requiring confirmation.
8. **Accessibility.** Combobox semantics with arrow-key navigation and announced result counts; any single-character shortcut (a letter, number or symbol without a modifier) can be turned off, remapped to include a modifier, or works only when its component has focus (WCAG 2.1.4 Character Key Shortcuts); nothing is available only by shortcut.
</task>

<constraints>
- Every command reachable by shortcut or palette must also be reachable through visible UI.
- Do not assign shortcuts that override common browser or OS shortcuts without saying so and offering an alternative.
- Single-character shortcuts must not fire inside text inputs and must be able to be turned off.
{{> output/uncertainty}}
</constraints>

<output_format>
## Scope
## Command inventory
| Command | Group | Synonyms | Context | Shortcut |
## Palette anatomy
## Search and ranking
## Shortcut map
| Action | Mac | Windows and Linux | Conflict check |
## Discoverability
## Edge states
## Accessibility
</output_format>

可替换内容

  • {{product_context}}
  • {{> output/uncertainty}}
  • [confirm]

分类与标签

设计创意、命令面板、快捷键设计、交互设计、无障碍设计

前往 AI 图片创作