Skip to content

feat: Cmd+Enter keyboard shortcut to submit annotations #69

@viv

Description

@viv

Summary

Add Cmd+Enter / Ctrl+Enter keyboard shortcut to submit the annotation popup form.

Problem

The annotation popup textarea has no keyboard shortcut to submit. Reviewers must tab to the Save button or reach for the mouse, breaking flow on every single annotation creation. This is a standard UX convention whose absence is surprising.

Proposal

  • Add Cmd+Enter (Mac) / Ctrl+Enter (Windows/Linux) as a keyboard shortcut to submit the popup form
  • Show a subtle hint below the textarea: ⌘↵ to save (Mac) / Ctrl+↵ to save (Windows/Linux)
  • Ensure Escape consistently dismisses the popup (verify current behaviour)
  • Platform detection for the hint text (check navigator.platform or navigator.userAgent)

Key Constraints

  • Must not interfere with normal Enter behaviour (newlines in the textarea)
  • The shortcut should only fire when the popup textarea is focused
  • Keep the hint text subtle — small, muted colour, below the textarea

Complexity

Low — a single keydown listener, platform detection for the hint. Approximately 20 minutes of work.

Consensus

1/3 STRONG YES (Reviewer). 2/3 MAYBE (Agent, Product — agreed it should be done, debated priority only). Highest frequency-to-effort ratio on the entire roadmap.

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions