Skip to content

feat(macos): in-app global shortcut for dictation toggle - #71

Merged
ElbertePlinio merged 1 commit into
mainfrom
feat/macos-shortcut
Jul 24, 2026
Merged

feat(macos): in-app global shortcut for dictation toggle#71
ElbertePlinio merged 1 commit into
mainfrom
feat/macos-shortcut

Conversation

@ElbertePlinio

Copy link
Copy Markdown
Member

PR 4 of #66.

  • tauri-plugin-global-shortcut registered on macOS only; handler drives the same engine.toggle path as the single-instance --toggle forwarding (Linux keeps the DE-keybinding flow untouched)
  • New [shortcut] config section: toggle = "Cmd+Shift+Space" default on macOS, empty (off) elsewhere; partial-config deserialization pinned by tests
  • update_app_config swaps registrations safely: register-new-before-unregister-old, rollback on settings persistence failure; startup registration failure logs and continues
  • Settings UI: macOS shows a shortcut field (existing panel/field components); Linux keeps the KDE keybinding guidance
  • "Global shortcuts" blocker removed from macOS platform support (dictation_supported flips in PR 5 after the E2E loop is proven)

Validated on macOS hardware: 132 engine + 38 shell tests, clippy -D warnings clean, vitest 42/42, svelte-check clean. Live registration deliberately not exercised (would grab a real hotkey in the active session) — covered in the PR 5 E2E.

🤖 Generated with Claude Code

@ElbertePlinio
ElbertePlinio merged commit fc1ab6e into main Jul 24, 2026
4 checks passed
@ElbertePlinio ElbertePlinio mentioned this pull request Jul 24, 2026
11 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant