Skip to content

Add mouse button shortcuts, fixes #171#172

Merged
SeoFood merged 1 commit intomainfrom
issue-171
Apr 3, 2026
Merged

Add mouse button shortcuts, fixes #171#172
SeoFood merged 1 commit intomainfrom
issue-171

Conversation

@SeoFood
Copy link
Copy Markdown
Contributor

@SeoFood SeoFood commented Apr 3, 2026

Summary

Adds support for mouse buttons (3+) as hotkey shortcuts for all dictation modes (hybrid, push-to-talk, toggle, prompt palette) and profile hotkeys. Users can now assign side mouse buttons (e.g. Button 4/5) via the hotkey recorder, with full double-tap support and event suppression via CGEventTap so assigned buttons don't trigger their default action (e.g. browser back). Left/right click are intentionally excluded.

Changes:

  • UnifiedHotkey: new mouseButton: UInt16? property with .mouseButton Kind, backward-compatible Codable
  • HotkeyService: expanded CGEventTap + NSEvent monitors for otherMouseDown/otherMouseUp, self-contained mouse button processing in processKeyEvent with double-tap state machine, display names, conflict detection
  • HotkeyRecorderView: mouse button recording with double-tap detection, updated prompt text
  • Localization: new EN/DE strings for mouse button names

Test Plan

  • Built and ran locally
  • Tested the changed functionality manually
  • No regressions in existing features

Extend the hotkey system to support mouse buttons (3+) as shortcuts
for all dictation modes. Adds otherMouseDown/Up to CGEventTap and
NSEvent monitors, mouse button recording in HotkeyRecorderView,
display names, and double-tap support.
@SeoFood SeoFood merged commit a0d01a1 into main Apr 3, 2026
7 checks passed
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