Skip to content

feat: Add toggle to show/hide mouse actions in key overlay#466

Open
mynameistito wants to merge 1 commit intomulaRahul:mainfrom
mynameistito:feature/toggle-mouse-actions
Open

feat: Add toggle to show/hide mouse actions in key overlay#466
mynameistito wants to merge 1 commit intomulaRahul:mainfrom
mynameistito:feature/toggle-mouse-actions

Conversation

@mynameistito
Copy link
Copy Markdown

@mynameistito mynameistito commented Apr 18, 2026

Summary

Fixes: #465

Right now there's no way to turn off mouse actions (clicks, drags, scrolls) appearing in the key overlay. Useful if you're recording and don't want the noise, or just prefer keyboard-only output.

This adds a "Show Mouse Actions" toggle in Settings > Mouse > Event. It defaults to on, so nothing changes for existing users.

What changed

key_style.ts - added showMouseActions: boolean to the MouseSettings interface, default true

key_event.ts - imported useKeyStyle and wrapped onMouseButtonPress, onMouseButtonRelease, drag simulation in onMouseMove, and onMouseWheel behind the setting check

src/components/settings/mouse.tsx - added the toggle UI in the Event section, reusing the already-imported MouseLeftClick05Icon

Note

All code changes in this PR were written by Claude, an AI agent. I reviewed the diff and verified the approach fits the existing patterns in the codebase before submitting.

Add `showMouseActions` setting to MouseSettings that controls whether
clicks, drags, and scrolls appear as events in the key overlay.

- Add `showMouseActions` field to MouseSettings interface (default: true)
- Guard onMouseButtonPress, onMouseButtonRelease, drag simulation, and
  onMouseWheel behind the setting check
- Add "Show Mouse Actions" toggle in Settings > Mouse > Event section
@mynameistito mynameistito changed the title Add toggle to show/hide mouse actions in key overlay feat: Add toggle to show/hide mouse actions in key overlay Apr 18, 2026
@mynameistito mynameistito force-pushed the feature/toggle-mouse-actions branch from 5bdf691 to dda8f44 Compare April 18, 2026 09:26
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.

[FEAT]: Add a toggle to show key clicks on the middle key shown area that pops up.

1 participant