Skip to content

feat(settings): Allow mouse button shortcuts - #209

Merged
thdxr merged 5 commits into
anomalyco:devfrom
LukasFB:feature/allow-mouse-button-shortcuts
Oct 29, 2026
Merged

thdxr merged 5 commits into
anomalyco:devfrom
LukasFB:feature/allow-mouse-button-shortcuts

Conversation

@LukasFB

@LukasFB LukasFB commented Oct 25, 2026

Copy link
Copy Markdown
Contributor

Fixes #128.

Allow recording mouse buttons, alone or with modifiers, as shortcuts on macOS, Windows and Linux/X11. Mouse shortcuts use the existing hold, toggle and double-tap behavior, persistence and conflict checks.

Windows supports the five standard mouse buttons through a low-level mouse hook. Linux/X11 supports global button grabs and mouse recording in Settings, ignoring the click that starts recording and wheel events.

Wayland's GlobalShortcuts portal supports keyboard triggers only. Mouse bindings remain ungranted without preventing keyboard bindings from working; Settings points users to compositor bindings invoking the hex CLI commands.

Validation:

  • Full macOS scripts/check passed: formatting, Clippy, 879 unit tests, 12 keyboard-layout checks and the MCP integration test.
  • Full Linux application Clippy including test code passed (Vulkan disabled in the validation environment).
  • Linux input harness: 39 tests passed; two additional Xvfb tests exercised global mouse press/release and Settings recording.
  • Windows input module and tests cross-target typechecked; native Windows execution remains unverified.
image

@thdxr
thdxr merged commit 3d6ee8f into anomalyco:dev Oct 29, 2026
3 of 5 checks passed
@thdxr

thdxr commented Oct 29, 2026

Copy link
Copy Markdown
Member

Merged, thank you @LukasFB! Mouse buttons now work as shortcuts on macOS, Windows and X11. Merge notes: on macOS, clicks and drags now go through the filtering tap as you designed, so the capture feature's pointer observation keeps only movement and scrolling on the passive tap and doesn't see clicks twice. Windows keeps the new "share dictation shortcut" pass-through for keys. I left out the local signing changes (VOICE_CONTROL_TEAM_ID, README section), because the build and signing scripts have since been rewritten around HEX_TEAM_ID.

— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

@thdxr

thdxr commented Oct 31, 2026

Copy link
Copy Markdown
Member

Thanks @LukasFB for building mouse-button shortcuts, it's still in Hex.

To keep Hex simple for new users, unproven features now live in Settings › Labs, off by default. To keep using it, turn on Mouse shortcuts there, or run hex labs on mouse-shortcuts. Get the latest build at https://github.com/anomalyco/hex#install-hex.

— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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.

Allow dictate bind to mouse buttons.

2 participants