FluidVoice icon indicating copy to clipboard operation
FluidVoice copied to clipboard

Activity → History: keyboard support for the entry list (↑/↓ navigation + ⌘C to copy)

Open Fe2-O3 opened this issue 4 months ago • 3 comments

Feature request

Make the Activity → History entry list keyboard-navigable:

  1. ↑ / ↓ move the selection within the History list when the list is focused (click into it, then arrow up/down to move between entries — today the arrows move the sidebar selection instead: Stats ↔ History ↔ File Transcription).
  2. ⌘C copies the selected entry (respecting the search field, so it never shadows text copy there). Return/Enter could also copy or open.

Why

Once you're browsing history, reaching for the mouse to change rows is friction. Arrow-key navigation + ⌘C is the standard macOS list interaction (Finder, Mail, Notes) and pairs naturally with the copy gestures.

Root cause (why it doesn't work today)

The history entry list is a custom ScrollView + LazyVStack of .buttonStyle(.plain) Button rows with a manual @State selectedEntryID, not a focusable List(selection:) / Table. Because the list never becomes the keyboard first responder:

  • arrow keys are handled by the sidebar's navigation instead of the list, and
  • the standard Copy command never reaches the list, so a .onCopyCommand on it doesn't fire — which is why ⌘C currently does nothing for a selected history entry.

Possible approaches

  • Make the list container focusable and handle .onMoveCommand / .onKeyPress for ↑/↓ plus .onCopyCommand for ⌘C, keeping the current custom row visuals; or
  • Migrate the custom list to a List(selection:), which gives arrow-key navigation and the Copy command "for free" (at the cost of a larger visual/layout change to reconcile with the existing row styling).

Relationship to #566

Split out from #566, which adds double-click, right-click, and Copy-button copying to the History list (with a small "Copied" toast near the cursor) — all of which work without keyboard focus. ⌘C was attempted in #566 via .onCopyCommand but couldn't fire because of the focus issue above, so it's tracked here to be implemented properly alongside arrow-key navigation. Happy to take this on as a follow-up PR.

Fe2-O3 avatar Jul 10 '26 05:07 Fe2-O3

Implemented in #568 — the History list is now focusable, so ↑/↓ navigate within the list and ⌘C copies the selected entry (the list no longer cedes the arrow keys to the sidebar once focused).

Fe2-O3 avatar Jul 10 '26 06:07 Fe2-O3

This issue has been marked stale because it has had no activity for 5 days. It will be closed in 2 days if there is no further activity. Add the keep-open or pinned label to prevent automatic closure.

github-actions[bot] avatar Jul 16 '26 00:07 github-actions[bot]

Resolving in favor of #566

grohith327 avatar Jul 16 '26 01:07 grohith327